|
2 | 2 |
|
3 | 3 | Diplomat prepares your interactive map for an international audience. With a few lines of code, your [MapLibre GL JS](https://github.com/maplibre/maplibre-gl-js/)–powered map will speak the user’s preferred language while informing them about local languages the world over. |
4 | 4 |
|
5 | | -| Before | After | |
6 | | -| ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
7 | | -| <img src="docs/navajo-nation.png" width="400" alt="Navajo Nation;Naabeehó Bináhásdzo"> | [<img src="docs/navajo-nation-es.png" width="400" alt="Nación Navajo (Navajo Nation • Naabeehó Bináhásdzo)">](https://americanamap.org/#map=9/36.2134/-109.2837&language=es) | |
8 | | -| <img src="docs/north-sea.png" width="400" alt="North Sea / Nordsee / Noordzee / Nordsøen / Nordsjøen / Mer du Nord"> | [<img src="docs/north-sea-la.png" width="400" alt="Mare Germanicum">](https://americanamap.org/#map=4/56/3&language=la) | |
| 5 | +| Before | After | |
| 6 | +| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 7 | +| <img src="docs/navajo-nation.png" width="400" alt="Navajo Nation;Naabeehó Bináhásdzo"> | [<img src="docs/navajo-nation-es.png" width="400" alt="Nación Navajo (Navajo Nation • Naabeehó Bináhásdzo)">](https://americanamap.org/#map=9/36.2134/-109.2837&language=es) | |
| 8 | +| <img src="docs/north-sea.png" width="400" alt="North Sea / Nordsee / Noordzee / Nordsøen / Nordsjøen / Mer du Nord"> | [<img src="docs/north-sea-la.png" width="400" alt="Mare Germanicum">](https://americanamap.org/#map=4/56/3&language=la) | |
9 | 9 | | <img src="docs/section-ross.png" width="400" alt="Ross Avenue;Tennessee Avenue at Rhode Island Avenue;Section Avenue"> | [<img src="docs/section-ross-en.png" width="400" alt="Ross Avenue • Tennessee Avenue at Rhode Island Avenue • Section Avenue">](https://americanamap.org/#map=17/39.168568/-84.460075) | |
10 | 10 |
|
11 | 11 | ## Features |
12 | 12 |
|
13 | 13 | Diplomat gives all parties a win-win: |
14 | 14 |
|
15 | | -* Tailors labels to the user’s preferred language. |
16 | | -* Respects multilingualism with optional dual language labels: both the user’s preferred language and the local native language. |
17 | | -* Recognizes any language, dialect, or script out of the box. |
| 15 | +- Tailors labels to the user’s preferred language. |
| 16 | +- Respects multilingualism with optional dual language labels: both the user’s preferred language and the local native language. |
| 17 | +- Recognizes any language, dialect, or script out of the box. |
18 | 18 |
|
19 | 19 | Diplomat lets your designer save face: |
20 | 20 |
|
21 | | -* Uses space efficiently with both multiline and inline label layouts. |
22 | | -* Deduplicates names within a label to avoid clutter. |
23 | | -* Preserves diacritics in English exonyms where appropriate. |
24 | | -* Respects right-to-left and vertical text layouts. |
| 21 | +- Uses space efficiently with both multiline and inline label layouts. |
| 22 | +- Deduplicates names within a label to avoid clutter. |
| 23 | +- Preserves diacritics in English exonyms where appropriate. |
| 24 | +- Respects right-to-left and vertical text layouts. |
25 | 25 |
|
26 | 26 | Diplomat works quietly behind the scenes: |
27 | 27 |
|
28 | | -* Changes the style on the fly at runtime – no need to publish a new style or tileset for every language. |
29 | | -* You choose which style layers to localize, or localize them all automatically. |
30 | | -* Supports multiple popular vector tile schemas without hacky workarounds, plus custom vector tilesets and GeoJSON sources. |
| 28 | +- Changes the style on the fly at runtime – no need to publish a new style or tileset for every language. |
| 29 | +- You choose which style layers to localize, or localize them all automatically. |
| 30 | +- Supports multiple popular vector tile schemas without hacky workarounds, plus custom vector tilesets and GeoJSON sources. |
31 | 31 |
|
32 | 32 | All localization is subject to the availability of localized names in the map data source. See [the caveats](#caveats) for more details. |
33 | 33 |
|
|
0 commit comments