Interactive interface for browsing global, full-resolution satellite imagery
WV-3729 - Land Surface Disturbance Tour Story Fixes (#6097)
christof-wittreich21c0f499dddd
diff --git a/config/default/common/config/wv.json/stories/default/land_disturbance.json b/config/default/common/config/wv.json/stories/default/land_disturbance.jsonindex 88c2cf9fd..6b2f20194 100644--- a/config/default/common/config/wv.json/stories/default/land_disturbance.json+++ b/config/default/common/config/wv.json/stories/default/land_disturbance.json@@ -79,7 +79,7 @@"element": "","action": ""},- "stepLink": "v=-118.83246602608848,33.97076020766552,-118.4301632511734,34.182217263930184&l=Reference_Labels_15m(hidden),Reference_Features_15m(hidden),Coastlines_15m(hidden),OPERA_L3_DIST-ALERT-HLS_Color_Index(hidden,disabled=9-0),HLS_Shortwave_Infrared_Sentinel(bandCombo=%7B%22r%22%3A%22B12%22;%22g%22%3A%22B8A%22;%22b%22%3A%22B04%22%7D),HLS_S30_Nadir_BRDF_Adjusted_Reflectance(hidden)&lg=true&l1=Reference_Labels_15m(hidden),Reference_Features_15m(hidden),Coastlines_15m(hidden),OPERA_L3_DIST-ALERT-HLS_Color_Index(hidden,disabled=9-0),HLS_Shortwave_Infrared_Landsat(bandCombo=%7B%22r%22%3A%22B07%22;%22g%22%3A%22B05%22;%22b%22%3A%22B04%22%7D),HLS_L30_Nadir_BRDF_Adjusted_Reflectance(hidden)&lg1=true&ca=false&cv=50&t=2025-01-02-T05%3A00%3A00Z&t1=2025-03-19-T05%3A00%3A00Z"+ "stepLink": "v=-118.83246602608848,33.97076020766552,-118.4301632511734,34.182217263930184&l=Reference_Labels_15m(hidden),Reference_Features_15m(hidden),Coastlines_15m(hidden),OPERA_L3_DIST-ALERT-HLS_Color_Index(hidden,disabled=9-0),HLS_Shortwave_Infrared_Sentinel(bandCombo={\"r\"%3A\"B12\";\"g\"%3A\"B8A\";\"b\"%3A\"B04\";\"color_formula\"%3A\"Gamma RGB 2.5 Saturation 1.2 Sigmoidal RGB 10 0.35\";\"bands_regex\"%3A\"B[0-9][0-9A-Za-z]\"}),HLS_S30_Nadir_BRDF_Adjusted_Reflectance(hidden)&lg=true&l1=Reference_Labels_15m(hidden),Reference_Features_15m(hidden),Coastlines_15m(hidden),OPERA_L3_DIST-ALERT-HLS_Color_Index(hidden,disabled=9-0),HLS_Shortwave_Infrared_Landsat(bandCombo={\"r\"%3A\"B07\";\"g\"%3A\"B05\";\"b\"%3A\"B04\";\"color_formula\"%3A\"Gamma RGB 2.5 Saturation 1.2 Sigmoidal RGB 10 0.35\";\"bands_regex\"%3A\"B[0-9][0-9]\"}),HLS_L30_Nadir_BRDF_Adjusted_Reflectance(hidden)&lg1=true&ca=false&cv=50&t=2025-01-02-T05%3A00%3A00Z&t1=2025-03-19-T05%3A00%3A00Z"},{"id": "008",@@ -88,7 +88,7 @@"element": "","action": ""},- "stepLink": "v=-118.83246602608848,33.97076020766552,-118.4301632511734,34.182217263930184&l=Reference_Labels_15m(hidden),Reference_Features_15m(hidden),Coastlines_15m(hidden),OPERA_L3_DIST-ALERT-HLS_Color_Index(disabled=9-0),HLS_Shortwave_Infrared_Sentinel(bandCombo=%7B%22r%22%3A%22B12%22;%22g%22%3A%22B8A%22;%22b%22%3A%22B04%22%7D),HLS_S30_Nadir_BRDF_Adjusted_Reflectance(hidden),HLS_S30_Nadir_BRDF_Adjusted_Reflectance(hidden)&lg=true&l1=Reference_Labels_15m(hidden),Reference_Features_15m(hidden),Coastlines_15m(hidden),OPERA_L3_DIST-ALERT-HLS_Color_Index(disabled=9-0),HLS_Shortwave_Infrared_Landsat(bandCombo=%7B%22r%22%3A%22B07%22;%22g%22%3A%22B05%22;%22b%22%3A%22B04%22%7D),HLS_S30_Nadir_BRDF_Adjusted_Reflectance(hidden),HLS_L30_Nadir_BRDF_Adjusted_Reflectance(hidden)&lg1=true&ca=true&cv=50&t=2025-01-02-T05%3A00%3A00Z&t1=2025-03-19-T05%3A00%3A00Z"+ "stepLink": "v=-118.83246602608848,33.97076020766552,-118.4301632511734,34.182217263930184&l=Reference_Labels_15m(hidden),Reference_Features_15m(hidden),Coastlines_15m(hidden),OPERA_L3_DIST-ALERT-HLS_Color_Index(disabled=9-0),HLS_Shortwave_Infrared_Sentinel(bandCombo={\"r\"%3A\"B12\";\"g\"%3A\"B8A\";\"b\"%3A\"B04\";\"color_formula\"%3A\"Gamma RGB 2.5 Saturation 1.2 Sigmoidal RGB 10 0.35\";\"bands_regex\"%3A\"B[0-9][0-9A-Za-z]\"}),HLS_S30_Nadir_BRDF_Adjusted_Reflectance(hidden),HLS_S30_Nadir_BRDF_Adjusted_Reflectance(hidden)&lg=true&l1=Reference_Labels_15m(hidden),Reference_Features_15m(hidden),Coastlines_15m(hidden),OPERA_L3_DIST-ALERT-HLS_Color_Index(disabled=9-0),HLS_Shortwave_Infrared_Landsat(bandCombo={\"r\"%3A\"B07\";\"g\"%3A\"B05\";\"b\"%3A\"B04\";\"color_formula\"%3A\"Gamma RGB 2.5 Saturation 1.2 Sigmoidal RGB 10 0.35\";\"bands_regex\"%3A\"B[0-9][0-9]\"}),HLS_S30_Nadir_BRDF_Adjusted_Reflectance(hidden),HLS_L30_Nadir_BRDF_Adjusted_Reflectance(hidden)&lg1=true&ca=true&cv=50&t=2025-01-02-T05%3A00%3A00Z&t1=2025-03-19-T05%3A00%3A00Z"},{"id": "009",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 4fce0cfbb..051c84209 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@@ -61,7 +61,7 @@"element": "","action": ""},- "stepLink": "v=66.26097333885345,26.790353652558686,70.01383041589206,28.640735154174614&l=Reference_Labels_15m,Coastlines_15m,HLS_Customizable_Landsat(bandCombo=%7B%22r%22%3A%22B07%22;%22g%22%3A%22B05%22;%22b%22%3A%22B04%22%7D),Land_Water_Map&lg=true&l1=Reference_Labels_15m,Coastlines_15m,HLS_Customizable_Landsat(bandCombo=%7B%22r%22%3A%22B07%22;%22g%22%3A%22B05%22;%22b%22%3A%22B04%22%7D),Land_Water_Map&lg1=true&ca=false&t=2023-05-03-T00%3A00%3A00Z&t1=2023-08-07-T00%3A00%3A00Z"+ "stepLink": "v=66.26097333885345,26.790353652558686,70.01383041589206,28.640735154174614&l=Reference_Labels_15m,Coastlines_15m,HLS_Shortwave_Infrared_Landsat(bandCombo={\"r\"%3A\"B07\";\"g\"%3A\"B05\";\"b\"%3A\"B04\";\"color_formula\"%3A\"Gamma RGB 2.5 Saturation 1.2 Sigmoidal RGB 10 0.35\";\"bands_regex\"%3A\"B[0-9][0-9]\"}),Land_Water_Map&lg=true&l1=Reference_Labels_15m,Coastlines_15m,HLS_Shortwave_Infrared_Landsat(bandCombo={\"r\"%3A\"B07\";\"g\"%3A\"B05\";\"b\"%3A\"B04\";\"color_formula\"%3A\"Gamma RGB 2.5 Saturation 1.2 Sigmoidal RGB 10 0.35\";\"bands_regex\"%3A\"B[0-9][0-9]\"}),Land_Water_Map&lg1=true&ca=false&t=2023-05-03-T00%3A00%3A00Z&t1=2023-08-07-T00%3A00%3A00Z"},{"id": "006",diff --git a/web/js/containers/sidebar/layer-row.js b/web/js/containers/sidebar/layer-row.jsindex db5d6b14c..c035e786b 100644--- a/web/js/containers/sidebar/layer-row.js+++ b/web/js/containers/sidebar/layer-row.js@@ -685,7 +685,7 @@ const makeMapStateToProps = () => {);const activeDate = compare.activeString === 'active' ? date.selected : date.selectedB;const dailyDate = formatDailyDate(activeDate);- const selectedDate = date.selected;+ const selectedDate = compare.activeString === 'active' ? date.selected : date.selectedB;const subdailyDate = formatSubdailyDate(activeDate);const collections = getCollections(layers, dailyDate, subdailyDate, layer, proj.id);const measurementDescriptionPath = getDescriptionPath(state, ownProps);diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex c7e486b84..607c9cc99 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -870,7 +870,7 @@ export default function mapLayerBuilder(config, cache, store) {const { maxExtent, crs } = selected;const { r, g, b } = def.bandCombo;const conceptID = def?.conceptIds?.[0]?.value || def?.collectionConceptID;- const dateTime = state.date.selected?.toISOString().split('T');+ const dateTime = options.group === 'active' ? date.selected?.toISOString().split('T') : date.selectedB?.toISOString().split('T');dateTime.pop();dateTime.push('00:00:00.000Z');const zeroedDate = dateTime.join('T');@@ -953,7 +953,7 @@ export default function mapLayerBuilder(config, cache, store) {const x = tileCoord[1];const y = tileCoord[2];- const dateTimeTile = state.date.selected?.toISOString().split('T');+ const dateTimeTile = options.group === 'active' ? date.selected?.toISOString().split('T') : date.selectedB?.toISOString().split('T');dateTimeTile.pop();dateTimeTile.push('00:00:00Z');const zeroedDateTile = dateTimeTile.join('T');@@ -984,7 +984,7 @@ export default function mapLayerBuilder(config, cache, store) {const xyzSource = new OlSourceXYZ(xyzSourceOptions);- const requestDate = util.toISOStringSeconds(util.roundTimeOneMinute(date.selected)).slice(0, 10);+ const requestDate = util.toISOStringSeconds(util.roundTimeOneMinute(options.group === 'active' ? date.selected : date.selectedB)).slice(0, 10);const className = `${def.id} ${requestDate}`;const layer = new OlLayerTile({@@ -1030,7 +1030,7 @@ export default function mapLayerBuilder(config, cache, store) {const xyzSource = new OlSourceXYZ(xyzSourceOptions);- const requestDate = util.toISOStringSeconds(util.roundTimeOneMinute(date.selected)).slice(0, 10);+ const requestDate = util.toISOStringSeconds(util.roundTimeOneMinute(options.group === 'active' ? date.selected : date.selectedB)).slice(0, 10);const className = `${def.id} ${requestDate}`;const layer = new OlLayerTile({