Interactive interface for browsing global, full-resolution satellite imagery
Restore layers loaded flag and add a loaded flase flag to while processing link
ZachTRice36b73cb52a1e
diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.jsindex 2beeb3505..69748a8ed 100644--- a/web/js/components/tour/modal-tour-in-progress.js+++ b/web/js/components/tour/modal-tour-in-progress.js@@ -197,6 +197,9 @@ class ModalInProgress extends React.Component {var ui = this.props.ui;var rotation = 0;+ // Layers have not yet loaded+ models.layers.loaded = false;+// Set rotation value if it existsif (currentState.p === 'arctic' || currentState.p === 'antarctic') {if (!isNaN(currentState.r)) {diff --git a/web/js/layers/model.js b/web/js/layers/model.jsindex 4b3d920b2..716568e16 100644--- a/web/js/layers/model.js+++ b/web/js/layers/model.js@@ -506,7 +506,7 @@ export function layersModel(models, config) {});};self.load = function(state, errors) {- // if (self.loaded) return;+ if (self.loaded) return;var layers;if (config.features.compare) {@@ -563,7 +563,7 @@ export function layersModel(models, config) {if (state.ca && state.ca !== 'true') {self.activeLayers = 'activeB';}- // self.loaded = true;+ self.loaded = true;};var forGroup = function(group, spec, activeLayers) {spec = spec || {};