Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

This resolves the view extent / zoom not being properly applied upon reload of the page during a tour.

Stephan Wlodarczyk12009fe82674
diff --git a/web/js/main.js b/web/js/main.js
index 15cb31afd..b5b7d337a 100644
--- a/web/js/main.js
+++ b/web/js/main.js
@@ -59,7 +59,13 @@ window.onload = () => {
loadingIndicator.delayed(promise, 1000);
promise
- .done((config) => {
+ .done(config => {
+ // Perform check to see if app was in the midst of a tour
+ if (parameters.tr) {
+ // Gets the extent of the first step of specified tour and overrides current view params
+ const tourParams = util.fromQueryString(config.stories[parameters.tr].steps[0].stepLink);
+ parameters.v = tourParams.v;
+ }
config.pageLoadTime = parameters.now
? util.parseDateUTC(parameters.now) || new Date()
: new Date();