You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Render label names in both the map viewer's preferred language and the local language of the object #799
What's your idea for a cool feature that would help you use OHM better.
Map labels can reflect interesting information (e.g., Arabic labels on the Iberian peninsula can imply Islamic / Moorish dominion at the time of the map display), but that information first needs to be able to be understood by the map viewer (e.g., readable by the user).
Employing a 2-line label system that communicates both the name of the entity in the user's language and the name in the local, time-specific name would add to the richness of the historical map and also make it easier for users to align historical maps in foreign languages when extracting information.
Here is an example from Google Maps doing something similar to what is described here:
This ticket builds on information previously discussed in #481.
In that ticket, @1ec5 points out how this ticket is currently blocked:
My breakdown in #481 (comment) assumes client-side language filtering, but ideally the client could just pass its preferred language(s) to the server as a URL query parameter and the server would resolve the languages down to a single name field. The OSM Americana project is working on something like this for its Planetiler- and AWS-based stack, but I don’t know if it would be compatible with OHM’s Tegola-based stack. Regardless, client-side filtering does work for any tileset, so we’ll try to package that up for OHM to use.
The Diplomat plugin is now available. It offers a superset of the functionality provided by the old mapbox-gl-language plugin, including dual language labeling. However, the plugin currently hard-codes the OpenMapTiles naming convention for name keys, which is slightly different than the OHM vector tiles’ naming convention. osm-americana/diplomat#5 tracks making the format configurable, so it blocks this issue.
OpenHistoricalMap/openhistoricalmap-embed#39 replaces mapbox-gl-language with Diplomat and appends a local language gloss to certain types of labels. Once this is working on the embed site, we can bring it over to the main site too.
Activity
danrademacher commentedon Jan 9, 2025
Note that this depends on the Americana team to improve the multilingual label plugin, which should be a drop in replacement.
Or if we have to do it without depending on Americana, it would depend o stylesheets, which would be a less ideal solution
1ec5 commentedon Nov 27, 2025
The Diplomat plugin is now available. It offers a superset of the functionality provided by the old mapbox-gl-language plugin, including dual language labeling. However, the plugin currently hard-codes the OpenMapTiles naming convention for name keys, which is slightly different than the OHM vector tiles’ naming convention. osm-americana/diplomat#5 tracks making the format configurable, so it blocks this issue.
localizeStyleinaccessible when importing as module osm-americana/diplomat#111ec5 commentedon Dec 23, 2025
OpenHistoricalMap/openhistoricalmap-embed#39 replaces mapbox-gl-language with Diplomat and appends a local language gloss to certain types of labels. Once this is working on the embed site, we can bring it over to the main site too.
1ec5 commentedon Jan 15, 2026
I marked #1258 as blocking because it causes unsightly control symbols to appear all over the map when using Diplomat.