[openstreetmap/openstreetmap-website] Add OpenMapTiles vector map (PR #4042)

Martin Ždila notifications at github.com
Thu May 25 11:46:24 UTC 2023


> This is great! Do you have any guidance for us as to how it handles regional languages, e.g. `pt-PT` vs `pt-BR`? Or `sr` vs `sr-Latn`? And what happens if you pick a language that is not supported by GL-based renderings, like `my` (Burmese)?

Supported languages of OMT are documented at https://docs.maptiler.com/schema/planet/#languages

<details>
<summary>Comparison</summary>

|OSM|OMT|Language|
|---|---|--------|
|af||Afrikaans|
|aln||Gheg Albanian|
||am|Amharic|
|ar|ar|Arabic|
|arz||Egyptian Arabic|
|ast||Asturian|
|az|az|Azerbaijani|
|ba||Bashkir|
|be-Tarask||Belarusian (Taraškievica)|
|be|be|Belarusian|
|bg|bg|Bulgarian|
|bn||Bengali|
|br|br|Breton|
|bs|bs|Bosnian|
|ca|ca|Catalan|
|ce|co|Chechen, Corsican|
|cs|cs|Czech|
|cy|cy|Welsh|
|da|da|Danish|
|de|de|German|
|diq||Zazaki|
|dsb||Lower Sorbian|
|el|el|Greek|
|en-GB||English (UK)|
|en|en|English|
|eo|eo|Esperanto|
|es|es|Spanish|
|et|et|Estonian|
|eu|eu|Basque|
|fa||Persian|
|fi|fi|Finnish|
|fit||Tornedalen Finnish|
|fr|fr|French|
|fur||Friulian|
|fy|fy|West Frisian|
|ga|ga|Irish|
|gcf||Guadeloupean Creole French|
|gd|gd|Scottish Gaelic|
|gl||Galician|
|gsw||Swiss German|
|he|he|Hebrew|
|hi|hi|Hindi|
|hr|hr|Croatian|
|hsb||Upper Sorbian|
|hu|hu|Hungarian|
||hy|Armenian|
|ia||Interlingua|
|id|id|Indonesian|
|is|is|Icelandic|
|it|it|Italian|
|ja|ja|Japanese|
||ja-Hira|Japanese (Hiragana)|
||ja-Latn|Japanese (Latin)|
||ja_rm|Japanese (Romanization)|
||ja_kana|Japanese (Kana)|
|ka|ka|Georgian|
|kab||Kabyle|
|kk-cyrl|kk|Kazakh (Cyrillic)|
|km||Khmer|
|kn|kn|Kannada|
|ko|ko|Korean|
||ko-Latn|Korean (Latin)|
|ksh||Colognian|
|ku-Latn||Kurdish (Latin)|
||ku|Kurdish|
||la|Latin|
|lb|lb|Luxembourgish|
|lt|lt|Lithuanian|
|lv|lv|Latvian|
|mk|mk|Macedonian|
||ml|Malayalam|
|mo||Moldovan|
|mr||Marathi|
|ms||Malay|
||mt|Maltese|
|my||Burmese|
|nb||Norwegian Bokmål|
|nds||Low German|
|ne||Nepali|
|nl|nl|Dutch|
|nn||Norwegian Nynorsk|
||no|Norwegian|
|nqo||N’Ko|
|oc|oc|Occitan|
|pa||Punjabi|
|pl|pl|Polish|
|pnb||Western Punjabi|
|ps||Pashto|
|pt-BR||Portuguese (Brazil)|
|pt-PT||Portuguese (Portugal)|
|pt|pt|Portuguese|
||rm|Romansh|
|ro|ro|Romanian|
|ru|ru|Russian|
|sat||Santali|
|sc||Sardinian|
|scn||Sicilian|
|sco||Scots|
|sk|sk|Slovak|
|skr-arab||Saraiki (Arabic)|
|sl|sl|Slovenian|
|sq|sq|Albanian|
|sr-Latn|sr-Latn|Serbian (Latin)|
|sr|sr|Serbian|
|sv|sv|Swedish|
|ta|ta|Tamil|
|te|te|Telugu|
|th|th|Thai|
|tl||Tagalog|
|tr|tr|Turkish|
|tt||Tatar|
|uk|uk|Ukrainian|
||vi|Vietnamese|
|xmf||Mingrelian|
||yi|Yiddish|
||yo|Yoruba|
||zh|Chinese|
|zh-CN||Chinese (China)|
|zh-HK||Chinese (Hong Kong)|
|zh-TW||Chinese (Taiwan)|

</details>

Currently if the language is not supported then local language is used - same as on Carto map - value from the `name` key of the tag.

> I want to make sure that the translations work for all of the [languages that our user interface works in](https://github.com/openstreetmap/openstreetmap-website/tree/master/config/locales), hopefully so that there's no mismatch between what you can pick in the UI and what then happens with this layer.

I will discuss it with my team. In any case current implementation doesn't fallback to the other languages in the list but I will implement it into this PR. Also falling back to main locale if sub-locale is not available (`pt-BR` -> `pt`).

> I also noticed on the wiki that it says "map labels translations from Wikidata" - can you clarify this? How does this interact with the translated labels available in OSM? If a contributor spots a mistake on the map, can they edit OSM to fix it, or do they have to edit something on Wikidata?

We have decided to use names primarily from wikidata because there are more translations than in OSM. If the name is not in wikidata then one from OSM is used.

> > We added it there to allow visitors to see the OSM in 3D. We would love to have it directly on [osm.org](http://osm.org/). However, it is not technically possible because the site runs on Leaflet. Therefore, we added it at least as an external link.
> 
> I don't think the layer attribution is the right place for linking to external sites to view other renderings.
> 
> If we want to link to external sites to view other renderings, which haven't been through the new layer approval process, then let's discuss this separately. And if we want to adapt the site to support alternative (i.e. non-leaflet) tech, then let's discuss that separately too. But I don't think such links should be part of the attribution for another layer, and I definitely don't think that should be part of this PR.

We will adjust it in this PR.




-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4042#issuecomment-1562761674
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4042/c1562761674 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230525/754256ac/attachment.htm>


More information about the rails-dev mailing list