Open bdon opened 1 year ago
I think an option for dual-stack labels is in scope for our default map style - top is the chosen language, bottom is the local language. This will require some tile-side logic like parsing out /
from OSM name:
tags, and I'm not sure how cleanly this can be done with static JSON styles - we don't want show both labels if they're exactly the same, for example.
As of right now it should have most name:*
tags in the style so you can find and replace name
in the symbol layers in the style to access those.
I'm making progress on https://github.com/protomaps/basemaps/issues/41 which is a prerequisite to this as you mentioned.
I would solve this problem country by country. OpenStreetMap does not have a consistent way of handling multilingual place labels, and automating based on OSM data could be hard. Similar for Wikidata I think.
But we could go through the countries one by one, and have a look how much sense the top n cities make based on their QRank value.
Also related in https://github.com/protomaps/basemaps/issues/44.
https://gitlab.gnome.org/GNOME/gnome-maps/-/blob/main/src/osmNames.js might be interesting
@wipfli we need something that's license compatible, deriving from that file is GPL however.
@bdon thanks for this work! I was searching for ways to create a world(!) map with English/international map labels, preferably showing BOTH (or switch in the style to) the English one AND the local one.
For an emergency response org, with world coverage it would be very cool to be able to generate tiles with 'both' language labels. And be able to use this (in QGIS) with only local resources (so non-connected laptops can just have their own basemap.
Had a look into https://github.com/protomaps/basemaps/blob/main/tiles/src/main/java/com/protomaps/basemap/names/OsmNames.java but it looks like just one name is saved into the tile objects?
One issue I have with other Tool chains is to setup the fonts for all local languages.
Again, Thanks for this work!