Skip to content

Publish basic boundary tileset #1096

Closed
Closed

Description

@1ec5

Developers frequently request country boundaries as polygons in order to either color-code countries (#700) or dynamically highlight individual countries (for example, on hover). For #701, we eliminated boundary polygons from the vector tiles in favor of much more efficient boundary edges as linear features, so there’s no longer enough information to piece together the shape of an administrative area. A comprehensive layer of countries as polygons would be far too big for GeoJSON, so developers would need it in vector tile format.

We could publish a tileset separate from the main one that contains just boundary polygons and doesn’t perform any coalescing by date. The core styles wouldn’t use this tileset at all, but developers could choose to include it alongside the main tileset. To avoid unreasonable download sizes, rendering times, and memory usage, we could limit the tileset to low admin_level=* relations, limit the available zoom levels, and simplify the geometries heavily at low zoom levels. The boundary tileset wouldn’t need to update as frequently as the main tileset. It also would not suggest a color for each boundary, as that would require generalizing the four-color theorem.

In principle, a third-party could provide this tileset instead of producing it from the official OHM infrastructure. For example, someone could generate the tileset using Planetiler, since it doesn’t necessarily require incremental minutely updates.

Activity

  1. added theissue type on Jul 15, 2025
  2. Rub21 commented on Jul 15, 2025

    @Rub21
    Member

    It would be great if a third party could generate these tiles, but we could also produce them directly from our Tiler since it only requires adding a new provider—something like ohm_boundaries. Currently, we already have three providers: OSM Land ( osm_land ), Natural Earth (ne) , and OHM ( osm). As for cache cleanup, we could run it every 24 hours or set other interval or include in our current minute cache cleaning.

    https://vtiles.openhistoricalmap.org/

    Image
  3. self-assigned this
    on Aug 14, 2025
  4. Rub21 commented on Aug 14, 2025

    @Rub21
    Member

    I have added the provider for OHM admin boundaries, currently deployed it in staging.
    Image

  5. Rub21 commented on Aug 20, 2025

    @Rub21
    Member

    Task completed!

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

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions