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
OHM website front-end should use vtiles endpoint based on the environment #104
@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. : )
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:
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
Activity
geohacker commentedon Jun 23, 2020
Actually we should do this on the deploy side I think
danrademacher commentedon Jun 24, 2020
I created the Staging branch over at
map-stylesand 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
Masterbranch 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.jsonBut 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.
geohacker commentedon Jun 25, 2020
@danrademacher staging vector tiles URL is now https://vtiles-staging.openhistoricalmap.org/ -- sorry about the confusion.
jeffreyameyer commentedon Jul 1, 2020
@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. : )
danrademacher commentedon Jan 19, 2021
We're going to do this with simple Javascript looking at the URL:
See code comment here:
OpenHistoricalMap/ohm-website@c2ca39d#r45347436
OpenHistoricalMap/issues#104 ohmStyle use production/staging based on…
gregallensworth commentedon Jan 22, 2021
This is now in place on gda-vtiles-stagingorproduction branch, itself a sub from new-inspector
The
ohmStyle.sources.osm.tileswill now be set to either staging or production URLs.&stagingtiles=1URL param in the hash when loading the pageMerge pull request #30 from OpenHistoricalMap/new-inspector
addition fix for dynamic tiles endpoint
danrademacher commentedon Feb 2, 2021
I thought this was all working as expected, but the deploy to production revealed that the URL param option as returning

-1and so always failing the production test: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
hostsfile:127.0.0.1 openhistoricalmaptest.orgAnd then I can can test the production conditional at
http://openhistoricalmaptest.org:3000Seeing production tiles here on my testing url:

But staging tiles here when using

localhost:danrademacher commentedon Feb 2, 2021
fully confirmed in this area where there's a bunch of data on production not in staging:
