Interactive interface for browsing global, full-resolution satellite imagery
activate water extent story (#5174)
Ryan Weilera9636f63d6b3
diff --git a/config/default/common/config/wv.json/stories/default/surface_water_extent.json b/config/default/common/config/wv.json/stories/default/surface_water_extent.jsonindex faf886e72..fbfa0d49e 100644--- a/config/default/common/config/wv.json/stories/default/surface_water_extent.json+++ b/config/default/common/config/wv.json/stories/default/surface_water_extent.json@@ -5,7 +5,7 @@"type": "default","title": "Surface Water Extent","description": "View near-global surface water extent at 30 meter resolution in Worldview.",- "backgroundImage": "",+ "backgroundImage": "surface-water-extent.png","backgroundImageHover": "","readMoreLinks": [{diff --git a/web/js/components/tour/tour-box.js b/web/js/components/tour/tour-box.jsindex c09f6b040..d71662fa9 100644--- a/web/js/components/tour/tour-box.js+++ b/web/js/components/tour/tour-box.js@@ -53,8 +53,8 @@ class TourBox extends React.Component {} = this.props;const { styles } = this.state;let floatBox = '';- if (storyOrder.length - (index + 2) === 0- || storyOrder.length - (index + 3) === 0) {+ if (storyOrder.length - (index + 1) === 0+ || storyOrder.length - (index + 2) === 0) {floatBox = ' tour-box-float';}return (diff --git a/web/js/components/tour/tour-boxes.js b/web/js/components/tour/tour-boxes.jsindex 31055aeab..dcb69aee9 100644--- a/web/js/components/tour/tour-boxes.js+++ b/web/js/components/tour/tour-boxes.js@@ -5,12 +5,10 @@ import TourBox from './tour-box';function TourBoxes(props) {const { stories, storyOrder, selectTour } = props;- // when we remove this we need to update tour-box.js render function to index+1 && index+2- const activeStoryOrder = storyOrder.filter((storyId) => storyId !== 'surface_water_extent');return (<div className="tour-box-container"><div className="tour-box-row">- {activeStoryOrder.map((storyId, i) => {+ {storyOrder.map((storyId, i) => {const story = stories[storyId];return (<TourBox