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
Nonstandard underscores, lowercase in localized name properties #1257
The main vector tiles use a format for localized name properties that contains underscores instead of hyphens. For example, name:zh-Hant-TW=* becomes name_zh_hant_tw. This is inconsistent with the IETF BCP 47 standard. Even other tilesets that use underscores, like Shortbread and Mapbox Streets, still use hyphens and mixed case inside language tags, for example name_zh-Hant-TW. The unusual format means a tileset-agnostic plugin such as Diplomat is unable to discover localized name properties that contain script or country codes.
Apparently the use of underscores and lowercase is due to a literal translation from columns to property names: #679 (comment). Would it be possible to somehow preserve the hyphens and mixed case, or recover it at a later stage of the pipeline? (The first underscore after name is fine, but subsequent underscores are causing this incompatibility.)
changed the title [-]Hyphens become underscores in localized name properties[/-][+]Nonstandard underscores, lowercase in localized name properties[/+]on Jan 15, 2026
This makes sense; to implement this we don't need to do a big change, only some on the config in the script that builds the Tegola config. OpenHistoricalMap/ohm-deploy@7d13b5d
Oh, that’s great. The main thing is restoring the hyphens in, for example, sr-Cyrl and su-Latn. Replacing name_ with name: does make the tileset more compatible with OpenMapTiles, which would be a nice added bonus. In that case, we’ll need to update the embed site and similarly set getLanguageField when initializing MapboxLanguage in the website. Once we upgrade both codebases to Diplomat (OpenHistoricalMap/openhistoricalmap-embed#39), these compatibility shims can go away.
Om my previous comment #1257 (comment) , the changes was made for tegola , but that doee not support anymore for the martin pipeline, so instead of using name: we are going to use name_ only : -> _
name_* is fine as long as we use - after that. 👍 This change would be backwards compatible (actually a bug fix), so we don’t have to worry about tracking down affected data consumers. If we later replace the first _ with : for compatibility with OpenMapTiles, then we’d need to tread more carefully.
Activity
[-]Hyphens become underscores in localized name properties[/-][+]Nonstandard underscores, lowercase in localized name properties[/+]Rub21 commentedon Jan 28, 2026
This makes sense; to implement this we don't need to do a big change, only some on the config in the script that builds the Tegola config. OpenHistoricalMap/ohm-deploy@7d13b5d
Here results the results in staging:
https://vtiles.staging.openhistoricalmap.org/capabilities/ohm.json
https://github.com/user-attachments/files/24946818/ohm.json
1ec5 commentedon Jan 28, 2026
Oh, that’s great. The main thing is restoring the hyphens in, for example,
sr-Cyrlandsu-Latn. Replacingname_withname:does make the tileset more compatible with OpenMapTiles, which would be a nice added bonus. In that case, we’ll need to update the embed site and similarly setgetLanguageFieldwhen initializingMapboxLanguagein the website. Once we upgrade both codebases to Diplomat (OpenHistoricalMap/openhistoricalmap-embed#39), these compatibility shims can go away.Rub21 commentedon May 6, 2026
Om my previous comment #1257 (comment) , the changes was made for tegola , but that doee not support anymore for the martin pipeline, so instead of using
name:we are going to usename_only:->_Here a example in staging:

https://www.openhistoricalmap.org/relation/2861348
1ec5 commentedon May 6, 2026
name_*is fine as long as we use-after that. 👍 This change would be backwards compatible (actually a bug fix), so we don’t have to worry about tracking down affected data consumers. If we later replace the first_with:for compatibility with OpenMapTiles, then we’d need to tread more carefully.Rub21 commentedon May 27, 2026
This features has been deployed in production !