Skip to content

Render label names in both the map viewer's preferred language and the local language of the object #799

Description

@jeffreyameyer

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:
image

This ticket builds on information previously discussed in #481.

In that ticket, @1ec5 points out how this ticket is currently blocked:

This is blocked on osm-americana/openstreetmap-americana#914, but I think even just labeling in the user’s language would be an improvement in the meantime.

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.

Activity

  1. moved this from Todo - Known Path to Parking Lot in OpenHistoricalMap Dev Planningon Jul 11, 2024
  2. moved this from Parking Lot to No status in OpenHistoricalMap Dev Planningon Jul 11, 2024
  3. danrademacher commented on Jan 9, 2025

    @danrademacher

    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

  4. added theissue type on Mar 16, 2025
  5. added
    website
    internationalization
    and removed on Mar 17, 2025
  6. 1ec5 commented on Nov 27, 2025

    @1ec5
    Member

    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.

  7. 1ec5 commented on Dec 23, 2025

    @1ec5
    Member

    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.

  8. 1ec5 commented on Jan 15, 2026

    @1ec5
    Member

    I marked #1258 as blocking because it causes unsightly control symbols to appear all over the map when using Diplomat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    internationalizationwebsite

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions