Skip to content

Conversation

@1ec5
Copy link
Member

@1ec5 1ec5 commented Dec 23, 2025

Replaced mapbox-gl-language with Diplomat for localizing labels into the user’s preferred language. Appended a gloss with the contemporary local language to any localized name.

The Old World in 1492

This is blocked by maplibre/maplibre-gl-js#6903.

Also, Diplomat is designed to add the gloss only to populated places, but many administrative areas in OHM are still mapped redundantly as both boundary relations and place points, mimicking populated places. These redundant place points should be deleted. Until then, the display will be fairly cluttered.

@1ec5 1ec5 self-assigned this Dec 23, 2025
index.js Outdated
localizedNamePropertyFormat: "name_$1",
});
localizeStyle(map, getLocales(), {
localizedNamePropertyFormat: "name_$1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unusually, the OHM tile schema’s format for localized name properties uses underscores instead of hyphens inside language tags, contrary to the IETF BCP 47 standard. Even other tilesets that use underscores, like Shortbread and Mapbox Streets, still use hyphens inside language tags.

https://github.com/OpenHistoricalMap/ohm-deploy/blob/05db04ddafc2a787a8e977466578b6e7f4a3b648/images/tiler-server/config/languages.sql#L134-L135

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants