Interactive interface for browsing global, full-resolution satellite imagery
If the comparison mode is open when starting story, close it first before loading state
ZachTRice54b7294fafde
diff --git a/config/default/common/config/wv.json/stories/dust-and-haze/saharan_dust_storms_2018.json b/config/default/common/config/wv.json/stories/dust-and-haze/saharan_dust_storms_2018.jsonindex 57def435c..20c9e9ef3 100644--- a/config/default/common/config/wv.json/stories/dust-and-haze/saharan_dust_storms_2018.json+++ b/config/default/common/config/wv.json/stories/dust-and-haze/saharan_dust_storms_2018.json@@ -61,7 +61,7 @@"element": "","action": ""},- "stepLink": "p=antarctic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Sea_Ice(hidden),MODIS_Aqua_Sea_Ice(hidden),MODIS_Aqua_Brightness_Temp_Band31_Night(hidden),MODIS_Aqua_Brightness_Temp_Band31_Day(hidden),MODIS_Terra_Brightness_Temp_Band31_Night(hidden),MODIS_Terra_Brightness_Temp_Band31_Day(hidden),VIIRS_SNPP_DayNightBand_ENCC(hidden),Coastlines&t=2018-03-30-T00%3A00%3A00Z&z=3&v=-2634478.7487170836,976584.7260544659,-1639910.5610838216,1462472.7260544659&e=EONET_2934,2018-03-30"+ "stepLink": "p=antarctic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Sea_Ice(hidden),MODIS_Aqua_Sea_Ice(hidden),MODIS_Aqua_Brightness_Temp_Band31_Night(hidden),MODIS_Aqua_Brightness_Temp_Band31_Day(hidden),MODIS_Terra_Brightness_Temp_Band31_Night(hidden),MODIS_Terra_Brightness_Temp_Band31_Day(hidden),VIIRS_SNPP_DayNightBand_ENCC(hidden),Coastlines&t=2018-03-30-T00%3A00%3A00Z&z=3&v=-2634478.7487170836,976584.7260544659,-1639910.5610838216,1462472.7260544659&e=EONET_2934,2018-03-30&r=89.9390"},{"id": "007",diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.jsindex 26c546bd7..73938c229 100644--- a/web/js/components/tour/modal-tour-in-progress.js+++ b/web/js/components/tour/modal-tour-in-progress.js@@ -34,6 +34,8 @@ class ModalInProgress extends React.Component {var currentStory = this.props.currentStory;var currentStepIndex = this.props.currentStep - 1;var modalStarted = this.props.modalInProgress;+ var models = this.props.models;+ var ui = this.props.ui;// When restarting tour, reset the MetaLoaded propif (this.props.restartTour) {@@ -43,8 +45,17 @@ class ModalInProgress extends React.Component {// Scroll content div to the top when step updatesif (this.refs.stepContent) this.refs.stepContent.parentNode.scrollTop = 0;- // Fetch meta and load link+ // Fetch meta and load link on first step if not already loadedif (modalStarted && !this.props.metaLoaded) {+ // If the comparison mode is open, close it before starting+ if (models.compare.active === true) {+ models.compare.toggle();+ models.compare.load({});+ }++ ui.sidebar.reactComponent.setState({+ isCompareMode: false+ });this.props.toggleMetaLoaded();this.fetchMetadata(currentStory, 0);this.loadLink(currentStory, currentStepIndex);