Skip to content

Improved deployment of map style #597

Closed
Closed

Description

@danrademacher

We had an issue over the weekend, #594, where changes to the map style there broke maps for Overpass Turbo, the OHM Wiki page, and our forthcoming new embed style.

This occurred because over time we slowly morphed form using the map-styles repo as purely a testing ground to being a source of live styles for clients other than the main OHM website.

We have short and long-term approaches to prevenitng this from happening in the future, while meeting needs of the cartography team for testing the style within a timeslider-enabled environment that also uses the same renderer as the website.

Short-term fix (going in place today)

this will require no changes in endpoint consumers, but it's not a great long-term fix since it's still pretty manual, potentially error-prone, and a bit hard to explain and understand.

Longer-term fix

Generally, the stylesheet repo is a bit messy and not using branches and automated deployment in the ways we should. This is mostly because it has served primarily as a storage place for JSON files edited in Maputnik, rather than actual application code.

A more sustainable fix would be to:

  • Create a new S3 deployment destination, under map-styles.openhistoricalmap.org, to which we deploy the style JSONs, sprites, fonts, and glyphs needed for each style. Likely in this directory structure:
fonts
glyphicons
japanese_scroll
ohm_default
woodblock 

cc @1ec5 @Rub21 interested in your take on the longer term option described above to formalize how we deploy stylesheet updates for consumers other than ohm-website.

Activity

  1. added
    infrastructure
    on Sep 5, 2023
  2. 1ec5 commented on Sep 6, 2023

    @1ec5
    Member

    Create a new S3 deployment destination, under map-styles.openhistoricalmap.org, to which we deploy the style JSONs, sprites, fonts, and glyphs needed for each style.

    Sounds good. The subdomain will hide the implementation detail of how the files are being hosted, which is nice. Maybe we could remove “Tegola” from the file name at the same time. Will the root of the subdomain be a simple file listing, similar to planet.openhistoricalmap.org, or a more elaborate readme? Either way, we should coordinate the deployment of this subdomain (and any renaming of the existing files) with updates to the documentation on the wiki.

  3. added theissue type on Mar 16, 2025
  4. moved this from Todo - Known Path to In Progress in OpenHistoricalMap Dev Planningon Apr 22, 2025
  5. moved this from In Progress to Ready for Staging in OpenHistoricalMap Dev Planningon Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

infrastructure

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions