Interactive interface for browsing global, full-resolution satellite imagery
Update modal complete list design and add to wildfire story
ZachTRice3d7b187a35c1
diff --git a/config/default/common/config/metadata/stories/california_british_columbia_wildfires_summer_2018/step016.md b/config/default/common/config/metadata/stories/california_british_columbia_wildfires_summer_2018/step016.mdindex b1bd261ab..139f1766d 100644--- a/config/default/common/config/metadata/stories/california_british_columbia_wildfires_summer_2018/step016.md+++ b/config/default/common/config/metadata/stories/california_british_columbia_wildfires_summer_2018/step016.md@@ -1,3 +1 @@<p>Here we can see some fires lasted the whole summer while others were extinguished and new ones poped up in other locations.</p>--<p>Using the timeline, layers and your own imagination you can discover a lot about what is happening in our world. Continue to experiement with these features or check out more stories by clicking next.</p>diff --git a/config/default/common/config/metadata/stories/california_british_columbia_wildfires_summer_2018/step017.md b/config/default/common/config/metadata/stories/california_british_columbia_wildfires_summer_2018/step017.mdnew file mode 100644index 000000000..d98f3259b--- /dev/null+++ b/config/default/common/config/metadata/stories/california_british_columbia_wildfires_summer_2018/step017.md@@ -0,0 +1 @@+<p>Using the timeline, layers and your own imagination you can discover a lot about what is happening in our world. Continue to experiement with these features or check out more stories by clicking next.</p>diff --git a/config/default/common/config/wv.json/stories.json b/config/default/common/config/wv.json/stories.jsonindex c2c009265..c104b47fb 100644--- a/config/default/common/config/wv.json/stories.json+++ b/config/default/common/config/wv.json/stories.json@@ -169,7 +169,7 @@"element": "","action": ""},- "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Fires_Terra,MODIS_Aqua_Land_Surface_Temp_Day(palette=blue_4),Reference_Labels,Reference_Features,Coastlines(hidden)&t=2018-07-27-T00%3A00%3A00Z&z=3&v=-156.44328262194088,23.555087183379857,-82.02431446194089,59.91185391987986&ab=off&as=2018-07-27T00%3A00%3A00Z&ae=2018-08-27T00%3A00%3A00Z&av=6&al=true"+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Fires_Terra,MODIS_Aqua_Land_Surface_Temp_Day,Reference_Labels,Reference_Features,Coastlines(hidden)&t=2018-07-27-T00%3A00%3A00Z&z=3&v=-156.44328262194088,23.555087183379857,-82.02431446194089,59.91185391987986&ab=off&as=2018-07-27T00%3A00%3A00Z&ae=2018-08-27T00%3A00%3A00Z&av=6&al=true"},{"id": "010",@@ -178,7 +178,7 @@"element": "","action": ""},- "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Fires_Terra,MODIS_Aqua_Land_Surface_Temp_Day(palette=blue_4),Reference_Labels,Reference_Features,Coastlines(hidden)&t=2018-07-27-T00%3A00%3A00Z&z=3&v=-130.4131465236909,35.97557629062987,-113.53814652369091,44.21971691562987&ab=off&as=2018-07-27T00%3A00%3A00Z&ae=2018-08-27T00%3A00%3A00Z&av=6&al=true"+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Fires_Terra,MODIS_Aqua_Land_Surface_Temp_Day,Reference_Labels,Reference_Features,Coastlines(hidden)&t=2018-07-27-T00%3A00%3A00Z&z=3&v=-130.4131465236909,35.97557629062987,-113.53814652369091,44.21971691562987&ab=off&as=2018-07-27T00%3A00%3A00Z&ae=2018-08-27T00%3A00%3A00Z&av=6&al=true"},{"id": "011",@@ -187,7 +187,7 @@"element": "","action": ""},- "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Fires_Terra,Reference_Labels,Reference_Features,Coastlines(hidden),MODIS_Aqua_Land_Surface_Temp_Day(palette=blue_4)&t=2018-07-27-T00%3A00%3A00Z&z=3&v=-130.4131465236909,35.97557629062987,-113.53814652369091,44.21971691562987&ab=off&as=2018-07-27T00%3A00%3A00Z&ae=2018-08-27T00%3A00%3A00Z&av=6&al=true"+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Fires_Terra,Reference_Labels,Reference_Features,Coastlines(hidden),MODIS_Aqua_Land_Surface_Temp_Day&t=2018-07-27-T00%3A00%3A00Z&z=3&v=-130.4131465236909,35.97557629062987,-113.53814652369091,44.21971691562987&ab=off&as=2018-07-27T00%3A00%3A00Z&ae=2018-08-27T00%3A00%3A00Z&av=6&al=true"},{"id": "012",@@ -233,6 +233,15 @@"action": "play"},"stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Fires_Terra,Reference_Labels,Reference_Features,Coastlines(hidden),MODIS_Aqua_Land_Surface_Temp_Day(hidden,palette=blue_4)&t=2018-08-27-T00%3A00%3A00Z&z=2&v=-130.4131465236909,35.97557629062987,-113.53814652369091,44.21971691562987&ab=on&as=2018-06-27T00%3A00%3A00Z&ae=2018-10-27T00%3A00%3A00Z&av=1.5&al=true"+ },+ {+ "id": "017",+ "description": "step017.html",+ "transition": {+ "element": "",+ "action": ""+ },+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Fires_Terra,Reference_Labels,Reference_Features,Coastlines(hidden),MODIS_Aqua_Land_Surface_Temp_Day(hidden,palette=blue_4)&t=2018-08-27-T00%3A00%3A00Z&z=2&v=-130.4131465236909,35.97557629062987,-113.53814652369091,44.21971691562987&ab=off&as=2018-06-27T00%3A00%3A00Z&ae=2018-10-27T00%3A00%3A00Z&av=1.5&al=true"}]},@@ -243,7 +252,7 @@"description": "Snow in South Africa is a rare event. Use the zoom tool and percipitation layers to look at this event.","backgroundImage": "background.png","backgroundImageHover": "backgroundHover.gif",- "readMoreLinks": "",+ "readMoreLinks": [],"steps": [{"id": "001",@@ -344,7 +353,7 @@"description": "Did you know dust from the African Sahara can travel across the ocean to North America? See for yourself!","backgroundImage": "background.png","backgroundImageHover": "",- "readMoreLinks": "",+ "readMoreLinks": [],"steps": [{"id": "001",@@ -445,7 +454,7 @@"description": "Use carbon dioxide and sulfur layers to look at the Sinabung Volcano.","backgroundImage": "background.png","backgroundImageHover": "",- "readMoreLinks": "",+ "readMoreLinks": [],"steps": [{"id": "001",@@ -546,7 +555,7 @@"description": "Hurricane Maria devastated Puerto Rico. Follow the storm as it forms from a tropical depression to a category 4 hurricane.","backgroundImage": "background.png","backgroundImageHover": "",- "readMoreLinks": "",+ "readMoreLinks": [],"steps": [{"id": "001",@@ -683,7 +692,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,Coastlines(hidden)&t=2017-07-10-T00:00:00Z&z=3&v=-7196672,-3780608,7196672,3780608"+ "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,Coastlines(hidden)&t=2017-07-10-T00:00:00Z&z=3&v=-7196672,-3780608,7196672,3780608&r=0"},{"id": "005",@@ -692,7 +701,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,Coastlines(hidden)&t=2017-07-10-T00%3A00%3A00Z&z=3&v=-7196672,-3780608,7196672,3780608&e=true"+ "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,Coastlines(hidden)&t=2017-07-10-T00%3A00%3A00Z&z=3&v=-7196672,-3780608,7196672,3780608&e=true&r=0"},{"id": "006",@@ -701,7 +710,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&r=84.593&v=-2634478.7487170836,976584.7260544659,-1639910.5610838216,1462472.7260544659&e=EONET_2934,2018-03-30"},{"id": "007",@@ -710,7 +719,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=2017-07-12-T00%3A00%3A00Z&z=3&v=-2601296.969455067,935552.4147922904,-1633977.225318607,1408128.4147922904&e=EONET_2934,2017-07-12"+ "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-08-24-T00%3A00%3A00Z&z=3&v=-2469376.3458011462,665462.2621905637,-1790651.783575157,1883102.2496773545&r=84.5936&e=EONET_2934,2018-08-24"},{"id": "008",@@ -719,25 +728,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=2017-07-12-T00:00:00Z&z=3&v=-2567429.097386837,935552.4147922904,-1667845.097386837,1408128.4147922904"- },- {- "id": "009",- "description": "step009.html",- "transition": {- "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,Coastlines&t=2017-07-12-T00:00:00Z&z=3&v=-2567429.097386837,935552.4147922904,-1667845.097386837,1408128.4147922904"- },- {- "id": "010",- "description": "step010.html",- "transition": {- "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,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,Coastlines&t=2017-07-12-T00:00:00Z&z=3&v=-2567429.097386837,935552.4147922904,-1667845.097386837,1408128.4147922904"+ "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,Coastlines&t=2018-08-24-T00%3A00%3A00Z&z=3&v=-2671161.359771827,262562.47041025024,-1529679.1388071906,2310395.2358745197&r=84.5936&e=EONET_2934,2018-08-24"}]},@@ -748,7 +739,7 @@"description": "Use various layers to explore regions of the earth at night!","backgroundImage": "background.png","backgroundImageHover": "",- "readMoreLinks": "",+ "readMoreLinks": [],"steps": [{"id": "001",@@ -849,7 +840,7 @@"description": "See how decades of water diversion, coupled with regional droughts, have caused the Aral Sea basic to dry out.","backgroundImage": "background.png","backgroundImageHover": "",- "readMoreLinks": "",+ "readMoreLinks": [],"steps": [{"id": "001",diff --git a/web/css/tour.css b/web/css/tour.cssindex 405cf9835..80c46b81c 100644--- a/web/css/tour.css+++ b/web/css/tour.css@@ -605,6 +605,19 @@margin-bottom: 16px;}+.tour-complete .modal-body ul {+ font-size: 16px;+ line-height: 24px;+ margin-bottom: 16px;+ padding-left: 16px;+}++.tour-complete .modal-body ul li {+ font-size: 16px;+ line-height: 24px;+ margin-bottom: 4px;+}+.tour-complete .modal-footer {display: block;border-top: none;diff --git a/web/js/components/tour/modal-tour-complete.js b/web/js/components/tour/modal-tour-complete.jsindex c8d1cf096..59803a5b5 100644--- a/web/js/components/tour/modal-tour-complete.js+++ b/web/js/components/tour/modal-tour-complete.js@@ -6,7 +6,7 @@ class ModalComplete extends React.Component {render() {let readMoreLinks = this.props.currentStory.readMoreLinks;let list;- if (readMoreLinks) {+ if (readMoreLinks && Array.isArray(readMoreLinks)) {list = (<React.Fragment><p>Read more about this story at the links below:</p>diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.jsindex a68aae35b..2b1221fab 100644--- a/web/js/components/tour/modal-tour-in-progress.js+++ b/web/js/components/tour/modal-tour-in-progress.js@@ -139,6 +139,16 @@ class ModalInProgress extends React.Component {var config = this.props.config;var models = this.props.models;var ui = this.props.ui;+ var rotation;+ if (currentState.p === 'arctic' || currentState.p === 'antarctic') {+ if (!isNaN(currentState.r)) {+ rotation = currentState.r * (Math.PI / 180.0);+ } else {+ rotation = 0;+ }+ } else {+ rotation = 0;+ }// LOAD: Map Projection, Map Date// TODO: THIS PROBABLY NEEDS REWORKED@@ -150,18 +160,8 @@ class ModalInProgress extends React.Component {ui.timeline.config.zoom(zoomLevel);}- // LOAD: Map Rotation (Animated)- if (currentState.p === 'arctic' || currentState.p === 'antarctic') {- if (!isNaN(currentState.r)) {- let rotation = currentState.r * (Math.PI / 180.0);- ui.map.selected.getView().animate({- duration: 800,- rotation: rotation- });- }- }-- // LOAD: Map Zoom & View (Animated)+ // LOAD: Map Zoom & View & Rotation(Animated)+ // TODO: Fix rotation animationif (currentState.v) {// Animate to extent & zoom:let extent = currentState.v;@@ -171,8 +171,9 @@ class ModalInProgress extends React.Component {let resolution = ui.map.selected.getView().getResolutionForExtent(extent);ui.map.selected.getView().animate({center: coordinates,- duration: 2000,- resolution: resolution+ duration: 4000,+ resolution: resolution,+ rotation: rotation});// Don't animate to extent & zoom: