Skip to content

Toggle for official_name #1226

Open

Description

@CharliePlett

What's your idea for a cool feature that would help you use OHM better.
I think it would be cool to have a toggle to show the official_name of places. I often map names like this so that the map isn't littered with long explanatory names, and instead put them in official_name so that when querying with QGIS you can optionally display the official_name instead of the short name. But I was thinking we could maybe have a toggle in the language selector to show official_names on the map.

Image

Activity

  1. 1ec5 commented on Nov 22, 2025

    @1ec5
    Member

    This is reasonable in principle. One could even imagine a style including the official name in a gloss beneath the common name for certain kinds of features (in much smaller text to avoid overwhelming the map). That said, short_name=* would be even more immediately useful, since we’re often unable to show labels at lower zoom levels due to long names colliding each other out. If we support short names (abbreviations or other shortenings), then you’d have more options for what to put in short_name=* versus name=* versus official_name=*.

    The vector tiles don’t expose *_name=* or *_name:*=* tags yet. The tiler code exposing names is already fairly involved, so hopefully it doesn’t get too complex.

  2. added theissue type on Nov 22, 2025
  3. Rub21 commented on Dec 3, 2025

    @Rub21
    Member

    Adding short_name and official_name should not be difficult, but for sure, we need to touch all the config files in order to add that those new values.

  4. self-assigned this
    on Dec 3, 2025
  5. Rub21 commented on Dec 12, 2025

    @Rub21
    Member

    I've updated the vtiles in staging to display the official_name and short_name, basically for admin centroids and places layer. I think these are the objects most likely to receive these attributes.

    e.g :

    Image Image

    Vtiles using official_name and short_name

    https://tiler-compare.openhistoricalmap.org/check-properties/index.html?id=2800460&env=staging#9.39/41.0068/-93.1094
    Image

    Add official_name:en, official_name:es, etc. For now, I think we could avoid overloading the columns further— but in case it ti required i could implement.

  6. 1ec5 commented on Dec 15, 2025

    @1ec5
    Member

    short_name=* would be even more immediately useful, since we’re often unable to show labels at lower zoom levels due to long names colliding each other out. If we support short names (abbreviations or other shortenings), then you’d have more options for what to put in short_name=* versus name=* versus official_name=*.

    #1239

  7. Rub21 commented on Dec 15, 2025

    @Rub21
    Member

    The changes has been deployed in production !!

  8. removed their assignment
    on Dec 15, 2025
  9. 1ec5 commented on Dec 15, 2025

    @1ec5
    Member

    Thanks, now we need to figure out how to expose the official names on the client side. Without built-in support for varying labels by placement (maplibre/maplibre-style-spec#1432), we’d need to be very careful about anything that would lengthen labels. An alternative would be a toggle in the website itself, as requested, but that’ll probably require some convoluted code to make all the symbol layers respond to the option.

  10. 1ec5 commented on Dec 17, 2025

    @1ec5
    Member

    Did you mean to post that to #1237 or #1238? This issue is unrelated, about official_name=* tags.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions