Skip to content

OHM website front-end should use vtiles endpoint based on the environment #104

Closed

Description

@geohacker

Staging vtile url is https://staging.vtiles.openhistoricalmap.org and we should use this instead of vtiles.openhistoricalmap.org on the staging stack. This can ideally happen on the front-end code.

Activity

  1. added
    website
    on Jun 23, 2020
  2. geohacker commented on Jun 23, 2020

    @geohacker
    Author

    Actually we should do this on the deploy side I think

  3. danrademacher commented on Jun 24, 2020

    @danrademacher

    I created the Staging branch over at map-styles and tested and merged the style change here:
    https://github.com/OpenHistoricalMap/map-styles/blob/staging/ohm_timeslider_tegola/tegola-ohm.json

    You can see the style working on the GL timeslider demo.

    I left the Master branch intact at the Map Styles repo and we might need to use that for Production. We are currently publishing the repo with GH Pages and we can do that only with Master or GH Pages branches. That seems handy as a reliable URL to get the latest style JSON, here https://openhistoricalmap.github.io/map-styles/ohm_timeslider_tegola/tegola-ohm.json

    But once we have CI in place, that might not be needed or wanted and we could get rid of Master and replace it with Production.

  4. geohacker commented on Jun 25, 2020

    @geohacker
    Author
  5. jeffreyameyer commented on Jul 1, 2020

    @jeffreyameyer
    Member

    @danrademacher - is there any staging site where we can look at staging styles that points at vtiles-staging? I have urgent (ok, not urgent, but something I've been working on for days is ready to review to see if it's working... ;) ) need for this. : )

  6. danrademacher commented on Jan 19, 2021

    @danrademacher

    We're going to do this with simple Javascript looking at the URL:

    See code comment here:
    OpenHistoricalMap/ohm-website@c2ca39d#r45347436

  7. added a commit that references this issue on Jan 22, 2021
  8. gregallensworth commented on Jan 22, 2021

    @gregallensworth

    This is now in place on gda-vtiles-stagingorproduction branch, itself a sub from new-inspector

    The ohmStyle.sources.osm.tiles will now be set to either staging or production URLs.

  9. added a commit that references this issue on Jan 28, 2021
  10. danrademacher commented on Feb 2, 2021

    @danrademacher

    I thought this was all working as expected, but the deploy to production revealed that the URL param option as returning -1 and so always failing the production test:
    image

    I don't see a string need for that parameter. When we are on staging, we get staging tiles, when we are developing locally, we get staging tiles. If anything we need the opposite, to test production tile loading.

    For that, I added this to my hosts file:
    127.0.0.1 openhistoricalmaptest.org

    And then I can can test the production conditional at http://openhistoricalmaptest.org:3000

    Seeing production tiles here on my testing url:
    image

    But staging tiles here when using localhost:
    image

  11. danrademacher commented on Feb 2, 2021

    @danrademacher

    fully confirmed in this area where there's a bunch of data on production not in staging:
    image

  12. added theissue type on Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

website

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions