Interactive interface for browsing global, full-resolution satellite imagery
Wv 2749 locate ddv imagery (#4614)
Patrick Moulden8e21d625475f
diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Customizable_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Customizable_Landsat.jsonindex 39f5b3f57..cba52e023 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Customizable_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Customizable_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_Customizable_Landsat": {"id": "HLS_Customizable_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "HLS Customizable Landsat 8 & 9 *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_Customizable_Landsat",@@ -20,6 +22,7 @@},"disableSnapshot": true,"wrapX": false,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Customizable_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Customizable_Sentinel.jsonindex cd3fa1120..3773cc634 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Customizable_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Customizable_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_Customizable_Sentinel": {"id": "HLS_Customizable_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "HLS Customizable Sentinel 2A & 2B *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_Customizable_Sentinel",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Landsat.jsonindex 179254491..8feec1265 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_False_Color_Landsat": {"id": "HLS_False_Color_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "Reflectance (Color Infrared, Bands 5-4-3) *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_False_Color_Landsat",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Sentinel.jsonindex 2b708ff33..e36e1a5e1 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_False_Color_Sentinel": {"id": "HLS_False_Color_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "Reflectance (Color Infrared, Bands 8-4-3) *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_False_Color_Sentinel",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Urban_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Urban_Landsat.jsonindex 0bef4e5f4..31362c003 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Urban_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Urban_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_False_Color_Urban_Landsat": {"id": "HLS_False_Color_Urban_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "Reflectance (Urban False Color, Bands 7-6-4) *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_False_Color_Urban_Landsat",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Urban_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Urban_Sentinel.jsonindex 092e2aa05..c7795a5b9 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Urban_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Urban_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_False_Color_Urban_Sentinel": {"id": "HLS_False_Color_Urban_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "Reflectance (Urban False Color, Bands 12-11-4) *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_False_Color_Urban_Sentinel",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Vegetation_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Vegetation_Landsat.jsonindex 37c7f7cc1..d16ca639e 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Vegetation_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Vegetation_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_False_Color_Vegetation_Landsat": {"id": "HLS_False_Color_Vegetation_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "Reflectance (Vegetative Analysis False Color, Bands 6-5-4) *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_False_Color_Vegetation_Landsat",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Vegetation_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Vegetation_Sentinel.jsonindex 3586a3e1b..0c9c2f928 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Vegetation_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_False_Color_Vegetation_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_False_Color_Vegetation_Sentinel": {"id": "HLS_False_Color_Vegetation_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "Reflectance (Vegetative Analysis False Color, Bands 11-8A-4) *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_False_Color_Vegetation_Sentinel",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_L30_Nadir_BRDF_Adjusted_Reflectance.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_L30_Nadir_BRDF_Adjusted_Reflectance.jsonindex 3a81c8746..f5255bd92 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_L30_Nadir_BRDF_Adjusted_Reflectance.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_L30_Nadir_BRDF_Adjusted_Reflectance.json@@ -2,6 +2,7 @@"layers": {"HLS_L30_Nadir_BRDF_Adjusted_Reflectance": {"id": "HLS_L30_Nadir_BRDF_Adjusted_Reflectance",+ "enableCMRDataFinder": true,"description": "multi-mission/hls/HLS_L30_Nadir_BRDF_Adjusted_Reflectance","tags": "corrected surface landsat oli sentinel msi s30","group": "overlays",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Moisture_Index_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Moisture_Index_Landsat.jsonindex b3496d525..84c5ec875 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Moisture_Index_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Moisture_Index_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_Moisture_Index_Landsat": {"id": "HLS_Moisture_Index_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "Moisture Index (NDMI) *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_Moisture_Index_Landsat",@@ -20,6 +22,7 @@"colormap_name": "jet_r"},"disableSnapshot": true,+ "minZoom": 7,"wrapX": false,"projections": {"geographic": {diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Moisture_Index_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Moisture_Index_Sentinel.jsonindex 4a42c8f49..fb789f0a9 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Moisture_Index_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Moisture_Index_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_Moisture_Index_Sentinel": {"id": "HLS_Moisture_Index_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "Moisture Index (NDMI) *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_Moisture_Index_Sentinel",@@ -20,6 +22,7 @@"colormap_name": "jet_r"},"disableSnapshot": true,+ "minZoom": 7,"wrapX": false,"projections": {"geographic": {diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDSI_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDSI_Landsat.jsonindex 9f09d3b2f..d4899fba9 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDSI_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDSI_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_NDSI_Landsat": {"id": "HLS_NDSI_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "Snow Index (NDSI) *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_NDSI_Landsat",@@ -20,6 +22,7 @@"colormap_name": "winter_r"},"disableSnapshot": true,+ "minZoom": 7,"wrapX": false,"projections": {"geographic": {diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDSI_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDSI_Sentinel.jsonindex 1b17eca0b..843d765be 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDSI_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDSI_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_NDSI_Sentinel": {"id": "HLS_NDSI_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "Snow Index (NDSI) *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_NDSI_Sentinel",@@ -20,6 +22,7 @@"colormap_name": "winter_r"},"disableSnapshot": true,+ "minZoom": 7,"wrapX": false,"projections": {"geographic": {diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDVI_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDVI_Landsat.jsonindex 833868b5d..b134c91a8 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDVI_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDVI_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_NDVI_Landsat": {"id": "HLS_NDVI_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "Vegetation Index (NDVI) *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_NDVI_Landsat",@@ -20,6 +22,7 @@"colormap_name": "greens"},"disableSnapshot": true,+ "minZoom": 7,"wrapX": false,"projections": {"geographic": {diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDVI_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDVI_Sentinel.jsonindex 85b734138..9661d2156 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDVI_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDVI_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_NDVI_Sentinel": {"id": "HLS_NDVI_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "Vegetation Index (NDVI) *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_NDVI_Sentinel",@@ -20,6 +22,7 @@"colormap_name": "greens"},"disableSnapshot": true,+ "minZoom": 7,"wrapX": false,"projections": {"geographic": {diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDWI_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDWI_Landsat.jsonindex 7ca0419c3..76155c860 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDWI_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDWI_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_NDWI_Landsat": {"id": "HLS_NDWI_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "Water Index (NDWI) *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_NDWI_Landsat",@@ -20,6 +22,7 @@"colormap_name": "gnbu"},"disableSnapshot": true,+ "minZoom": 7,"wrapX": false,"projections": {"geographic": {diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDWI_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDWI_Sentinel.jsonindex b012a82c6..920f85240 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDWI_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_NDWI_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_NDWI_Sentinel": {"id": "HLS_NDWI_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "Water Index (NDWI) *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_NDWI_Sentinel",@@ -20,6 +22,7 @@"colormap_name": "gnbu"},"disableSnapshot": true,+ "minZoom": 7,"wrapX": false,"projections": {"geographic": {diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_S30_Nadir_BRDF_Adjusted_Reflectance.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_S30_Nadir_BRDF_Adjusted_Reflectance.jsonindex f4e655d0e..8c252cd79 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_S30_Nadir_BRDF_Adjusted_Reflectance.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_S30_Nadir_BRDF_Adjusted_Reflectance.json@@ -2,6 +2,7 @@"layers": {"HLS_S30_Nadir_BRDF_Adjusted_Reflectance": {"id": "HLS_S30_Nadir_BRDF_Adjusted_Reflectance",+ "enableCMRDataFinder": true,"description": "multi-mission/hls/HLS_S30_Nadir_BRDF_Adjusted_Reflectance","tags": "corrected surface landsat oli sentinel msi s30","group": "overlays",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Shortwave_Infrared_Landsat.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Shortwave_Infrared_Landsat.jsonindex ef7e7f8f7..a97fa5d3c 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Shortwave_Infrared_Landsat.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Shortwave_Infrared_Landsat.json@@ -2,6 +2,8 @@"layers": {"HLS_Shortwave_Infrared_Landsat": {"id": "HLS_Shortwave_Infrared_Landsat",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957657-LPCLOUD","title": "Reflectance (Shortwave Infrared, Bands 7-5-4) *BETA*","subtitle": "Landsat 8 & 9 / OLI","description": "multi-mission/hls/HLS_Shortwave_Infrared_Landsat",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Shortwave_Infrared_Sentinel.json b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Shortwave_Infrared_Sentinel.jsonindex 84b8b3e9a..5f1a9d932 100644--- a/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Shortwave_Infrared_Sentinel.json+++ b/config/default/common/config/wv.json/layers/multi-mission/hls/HLS_Shortwave_Infrared_Sentinel.json@@ -2,6 +2,8 @@"layers": {"HLS_Shortwave_Infrared_Sentinel": {"id": "HLS_Shortwave_Infrared_Sentinel",+ "enableCMRDataFinder": true,+ "collectionConceptID": "C2021957295-LPCLOUD","title": "Reflectance (Shortwave Infrared, Bands 12-8A-4) *BETA*","subtitle": "Sentinel 2A & 2B / MSI","description": "multi-mission/hls/HLS_Shortwave_Infrared_Sentinel",@@ -20,6 +22,7 @@},"wrapX": false,"disableSnapshot": true,+ "minZoom": 7,"projections": {"geographic": {"source": "DDV",diff --git a/config/default/common/config/wv.json/layers/multi-mission/opera/OPERA_L3_Dynamic_Surface_Water_Extent-HLS_Provisional.json b/config/default/common/config/wv.json/layers/multi-mission/opera/OPERA_L3_Dynamic_Surface_Water_Extent-HLS_Provisional.jsonindex de33424e5..e3c874a58 100644--- a/config/default/common/config/wv.json/layers/multi-mission/opera/OPERA_L3_Dynamic_Surface_Water_Extent-HLS_Provisional.json+++ b/config/default/common/config/wv.json/layers/multi-mission/opera/OPERA_L3_Dynamic_Surface_Water_Extent-HLS_Provisional.json@@ -2,6 +2,7 @@"layers": {"OPERA_L3_Dynamic_Surface_Water_Extent-HLS_Provisional": {"id": "OPERA_L3_Dynamic_Surface_Water_Extent-HLS_Provisional",+ "enableCMRDataFinder": true,"description": "multi-mission/opera/OPERA_L3_Dynamic_Surface_Water_Extent-HLS_Provisional","tags": "podaac PO.DAAC DSWx flood","group": "overlays",diff --git a/web/js/components/feature-alert/granuleAlertModal.js b/web/js/components/feature-alert/granuleAlertModal.jsnew file mode 100644index 000000000..3a74519d7--- /dev/null+++ b/web/js/components/feature-alert/granuleAlertModal.js@@ -0,0 +1,26 @@+import React from 'react';+import { Container, Row, Col } from 'reactstrap';++function GranuleAlertModalBody() {+ return (+ <Container className="event-alert-modal-body">+ <Row className="p-2">+ <Col>+ <h2>+ Why can't I see the imagery for this layer?+ </h2>+ </Col>+ </Row>++ <Row className="p-3">+ <Col>+ <p>+ Certain imagery visualization layers have narrower and smaller footprints so there isn't imagery to view at every location across the globe. Some imagery layers also have lower temporal revisit periods meaning there won't be daily imagery for a specific location on earth. Click on “View Options” in the layer list to access a date picker to locate imagery for your desired location.+ </p>+ </Col>+ </Row>+ </Container>+ );+}++export default GranuleAlertModalBody;diff --git a/web/js/components/feature-alert/zoomAlertModal.js b/web/js/components/feature-alert/zoomAlertModal.jsnew file mode 100644index 000000000..744d17aff--- /dev/null+++ b/web/js/components/feature-alert/zoomAlertModal.js@@ -0,0 +1,26 @@+import React from 'react';+import { Container, Row, Col } from 'reactstrap';++function ZoomAlertModalBody() {+ return (+ <Container className="event-alert-modal-body">+ <Row className="p-2">+ <Col>+ <h2>+ Why can't I see the imagery at this zoom level?+ </h2>+ </Col>+ </Row>++ <Row className="p-3">+ <Col>+ <p>+ Imagery for certain layers is dynamically generated and only available when zoomed in. Please zoom in to view this product.+ </p>+ </Col>+ </Row>+ </Container>+ );+}++export default ZoomAlertModalBody;diff --git a/web/js/components/layer/settings/imagery-search.js b/web/js/components/layer/settings/imagery-search.jsnew file mode 100644index 000000000..3fb4b7710--- /dev/null+++ b/web/js/components/layer/settings/imagery-search.js@@ -0,0 +1,144 @@+import React, { useState, useEffect, useRef } from 'react';+import { useSelector, useDispatch } from 'react-redux';+import {+ Spinner,+} from 'reactstrap';+import { selectDate as selectDateAction } from '../../../modules/date/actions';++const dateOptions = {+ year: 'numeric',+ month: 'long',+ day: 'numeric',+};+const parseGranuleTimestamp = (granule) => new Date(granule.time_start);+const maxExtent = [-180, -90, 180, 90];++export default function ImagerySearch({ layer }) {+ const listRef = useRef(null);+ const startRef = useRef(null);+ const endRef = useRef(null);+ const dispatch = useDispatch();+ const selectDate = (date) => { dispatch(selectDateAction(date)); };+ const selectedDate = useSelector((state) => state.date.selected);+ const map = useSelector((state) => state.map);+ const [granulesStartStatus, setGranulesStartStatus] = useState(undefined);+ const [granulesEndStatus, setGranulesEndStatus] = useState(undefined);+ const [olderGranuleDates, setOlderGranuleDates] = useState([]);+ const [newerGranuleDates, setNewerGranuleDates] = useState([]);+ const [page, setPage] = useState(1);++ const conceptID = layer?.conceptIds?.[0]?.value || layer?.collectionConceptID;++ const getOlderGranules = async (layer, refDate = selectedDate, pageNum = 1) => {+ // clamp extent to maximum extent allowed by the CMR api+ const extent = map.extent.map((coord, i) => {+ const condition = i <= 1 ? coord > maxExtent[i] : coord < maxExtent[i];+ if (condition) {+ return coord;+ }+ return maxExtent[i];+ });+ try {+ const olderResponse = await fetch(`https://cmr.earthdata.nasa.gov/search/granules.json?collection_concept_id=${conceptID}&bounding_box=${extent.join(',')}&temporal=,${refDate.toISOString()}&sort_key=-start_date&pageSize=25&page_num=${pageNum}`);+ const olderGranules = await olderResponse.json();+ const olderDates = olderGranules.feed.entry.map(parseGranuleTimestamp);++ return olderDates;+ } catch (e) {+ return [];+ }+ };++ const getNewerGranules = async (layer, refDate = selectedDate, pageNum = 1) => {+ // clamp extent to maximum extent allowed by the CMR api+ const extent = map.extent.map((coord, i) => {+ const condition = i <= 1 ? coord > maxExtent[i] : coord < maxExtent[i];+ if (condition) {+ return coord;+ }+ return maxExtent[i];+ });+ try {+ const newerResponse = await fetch(`https://cmr.earthdata.nasa.gov/search/granules.json?collection_concept_id=${conceptID}&bounding_box=${extent.join(',')}&temporal=${refDate.toISOString()},&sort_key=start_date&pageSize=25&page_num=${pageNum}`);+ const newerGranules = await newerResponse.json();+ const newerDates = newerGranules.feed.entry.map(parseGranuleTimestamp);++ return newerDates;+ } catch (e) {+ return [];+ }+ };++ const loadNewerDates = async (layer, pageNum = 1) => {+ setGranulesStartStatus('loading');+ const newerDates = await getNewerGranules(layer, newerGranuleDates[0], pageNum);+ const dates = [...newerGranuleDates, ...newerDates].sort((a, b) => Date.parse(b) - Date.parse(a));+ setNewerGranuleDates(dates);+ setGranulesStartStatus('loaded');+ };++ const loadOlderDates = async (layer, pageNum = 1) => {+ setGranulesEndStatus('loading');+ const olderDates = await getOlderGranules(layer, olderGranuleDates.at(-1), pageNum);+ const dates = [...olderGranuleDates, ...olderDates].sort((a, b) => Date.parse(b) - Date.parse(a));+ setOlderGranuleDates(dates);+ setGranulesEndStatus('loaded');+ };++ const handleSelection = (date) => {+ selectDate(new Date(date));+ };++ useEffect(() => {+ const asyncFunc = async () => {+ if (listRef.current.scrollHeight <= listRef.current.clientHeight) {+ await loadOlderDates(layer, page);+ await loadNewerDates(layer, page);+ setPage(page + 1);+ } else {+ listRef.current.scrollTop = listRef.current.scrollHeight / 2;+ }+ };+ asyncFunc();+ }, [page]);++ const renderDates = () => {+ const granuleDates = [...olderGranuleDates, ...newerGranuleDates].sort((a, b) => Date.parse(b) - Date.parse(a));+ const renderedDates = [...new Set(granuleDates.map((date) => date.toLocaleDateString('en-US', dateOptions)))].map((date, i) => (+ <li className="lazyload-list-item" key={date} onClick={() => handleSelection(date)}>+ {date}+ </li>+ ));+ return renderedDates;+ };++ const handleScroll = (e) => {+ const { scrollTop } = e.target;+ const position = e.target.scrollHeight - e.target.clientHeight;+ const scrollPercentage = scrollTop / position;++ if (scrollPercentage <= 0.1) {+ loadNewerDates(layer);+ }++ if (scrollPercentage >= 0.9) {+ loadOlderDates(layer);+ }+ };++ return (+ <div className="imagery-search-container">+ <p className="lazyload-title">Available Imagery Dates</p>+ <ul ref={listRef} className="lazyload-list" onScroll={handleScroll}>+ <li ref={startRef} className="imagery-search-spinner">+ {granulesStartStatus === 'loading' && <Spinner size="sm">Loading...</Spinner>}+ </li>+ {renderDates()}+ <li ref={endRef} className="imagery-search-spinner">+ {granulesEndStatus === 'loading' && <Spinner size="sm">Loading...</Spinner>}+ </li>+ </ul>+ <hr />+ </div>+ );+}diff --git a/web/js/components/layer/settings/layer-settings.js b/web/js/components/layer/settings/layer-settings.jsindex 53be5256b..019a29e23 100644--- a/web/js/components/layer/settings/layer-settings.js+++ b/web/js/components/layer/settings/layer-settings.js@@ -15,6 +15,8 @@ import PaletteThreshold from './palette-threshold';import GranuleLayerDateList from './granule-date-list';import GranuleCountSlider from './granule-count-slider';import safeLocalStorage from '../../../util/local-storage';+import ImagerySearch from './imagery-search';+import {palettesTranslate,@@ -338,10 +340,12 @@ class LayerSettings extends React.Component {customPalettesIsActive,layer,palettedAllowed,+ zot,} = this.props;const hasAssociatedLayers = layer.associatedLayers && layer.associatedLayers.length;const hasTracks = layer.orbitTracks && layer.orbitTracks.length;const ttilerLayer = layer.id === 'HLS_Customizable_Sentinel' || layer.id === 'HLS_Customizable_Landsat';+ const granuleMetadata = layer?.enableCMRDataFinder && !(zot?.underZoomValue > 0);const layerGroup = layer.layergroup;if (layer.type !== 'vector') {@@ -365,6 +369,7 @@ class LayerSettings extends React.Component {{this.renderGranuleSettings()}{renderCustomizations}{ttilerLayer && <BandSelection layer={layer} />}+ {granuleMetadata && <ImagerySearch layer={layer} /> }{(hasAssociatedLayers || hasTracks) && <AssociatedLayers layer={layer} />}</>);@@ -486,4 +491,5 @@ LayerSettings.propTypes = {updateGranuleLayerOptions: PropTypes.func,toggleAllClassifications: PropTypes.func,vectorStyles: PropTypes.object,+ zot: PropTypes.object,};diff --git a/web/js/containers/sidebar/layer-row.js b/web/js/containers/sidebar/layer-row.jsindex cf48aa21f..cfd245e00 100644--- a/web/js/containers/sidebar/layer-row.js+++ b/web/js/containers/sidebar/layer-row.js@@ -2,10 +2,10 @@/* eslint-disable react/jsx-props-no-spreading *//* eslint-disable react/no-danger */import React, { useState, useEffect } from 'react';+import { useSelector, connect } from 'react-redux';import PropTypes from 'prop-types';import { Draggable } from 'react-beautiful-dnd';import { isEmpty as lodashIsEmpty, get as lodashGet } from 'lodash';-import { connect } from 'react-redux';import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';import {UncontrolledTooltip, Dropdown, DropdownToggle, DropdownMenu, DropdownItem,@@ -39,9 +39,10 @@ import { SIDEBAR_LAYER_HOVER, MAP_RUNNING_DATA } from '../../util/constants';import {updateActiveChartingLayerAction,} from '../../modules/charting/actions';+import AlertUtil from '../../components/util/alert';const { events } = util;-const { vectorModalProps } = MODAL_PROPERTIES;+const { vectorModalProps, granuleModalProps, zoomModalProps } = MODAL_PROPERTIES;const getItemStyle = (isDragging, draggableStyle) => ({// some basic styles to make the items look a bit nicer...draggableStyle,@@ -74,6 +75,8 @@ function LayerRow (props) {onOptionsClick,hasClickableFeature,openVectorAlertModal,+ openGranuleAlertModal,+ openZoomAlertModal,toggleVisibility,isDisabled,isVisible,@@ -105,6 +108,61 @@ function LayerRow (props) {const [showDropdownBtn, setDropdownBtnVisible] = useState(false);const [showDropdownMenu, setDropdownMenuVisible] = useState(false);const [runningDataObj, setRunningDataObj] = useState({});+ const [disabled, setDisabled] = useState(isDisabled);+ const [activeZot, setActiveZot] = useState(zot);+ const [showZoomAlert, setShowZoomAlert] = useState(false);+ const [showGranuleAlert, setShowGranuleAlert] = useState(false);+ const [hideZoomAlert, setHideZoomAlert] = useState(false);+ const [hideGranuleAlert, setHideGranuleAlert] = useState(false);+ const map = useSelector((state) => state.map);+ const selectedDate = useSelector((state) => state.date.selected);++ useEffect(() => {+ const asyncFunc = async () => {+ if (layer.enableCMRDataFinder && isVisible) {+ const conceptID = layer?.conceptIds?.[0]?.value || layer?.collectionConceptID;+ const dateTime = selectedDate?.toISOString().split('T');+ dateTime.pop();+ dateTime.push('00:00:00.000Z');+ const zeroedDate = dateTime.join('T');+ const maxExtent = [-180, -90, 180, 90];+ // clamp extent to maximum extent allowed by the CMR api+ const extent = map.extent.map((coord, i) => {+ const condition = i <= 1 ? coord > maxExtent[i] : coord < maxExtent[i];+ if (condition) {+ return coord;+ }+ return maxExtent[i];+ });+ const olderRes = await fetch(`https://cmr.earthdata.nasa.gov/search/granules.json?collection_concept_id=${conceptID}&bounding_box=${extent.join(',')}&temporal=P0Y0M0DT0H0M/${zeroedDate}&sort_key=-start_date&pageSize=1`);+ const newerRes = await fetch(`https://cmr.earthdata.nasa.gov/search/granules.json?collection_concept_id=${conceptID}&bounding_box=${extent.join(',')}&temporal=${zeroedDate}/P0Y0M1DT0H0M&sort_key=-start_date&pageSize=1`);+ if (!olderRes.ok || !newerRes.ok) return;+ const olderGranules = await olderRes.json();+ const newerGranules = await newerRes.json();+ const olderEntries = olderGranules?.feed?.entry || [];+ const newerEntries = newerGranules?.feed?.entry || [];+ const granules = [...olderEntries, ...newerEntries];+ if (zot?.underZoomValue > 0) {+ setShowZoomAlert(true);+ } else {+ setShowZoomAlert(false);+ }+ if (!granules.length && !(zot?.underZoomValue > 0)) {+ setActiveZot({ hasGranules: false });+ setShowGranuleAlert(true);+ } else {+ setActiveZot(zot);+ setShowGranuleAlert(false);+ }+ if (!granules.length || zot?.underZoomValue > 0) {+ setDisabled(true);+ } else {+ setDisabled(isDisabled);+ }+ }+ };+ asyncFunc();+ }, [map.extent, zot, selectedDate, isVisible]);useEffect(() => {events.on(MAP_RUNNING_DATA, setRunningDataObj);@@ -127,7 +185,7 @@ function LayerRow (props) {? compare.activeString === compareState && !!runningDataForLayer: !!runningDataForLayer;const colorHex = isRunningData ? runningDataForLayer.paletteHex : null;- let width = zot ? 220 : 231;+ let width = activeZot || zot ? 220 : 231;if (isEmbedModeActive) {width = 201;}@@ -212,7 +270,7 @@ function LayerRow (props) {id={layerOptionsBtnId}aria-label={layerOptionsBtnTitle}className="button wv-layers-options layer-options-dropdown-item"- onClick={() => onOptionsClick(layer, title)}+ onClick={() => onOptionsClick(layer, title, zot)}>{layerOptionsBtnTitle}</DropdownItem>@@ -248,7 +306,7 @@ function LayerRow (props) {aria-label={layerOptionsBtnTitle}className={isMobile ? 'hidden wv-layers-options' : 'button wv-layers-options'}onMouseDown={stopPropagation}- onClick={() => onOptionsClick(layer, title)}+ onClick={() => onOptionsClick(layer, title, zot)}><UncontrolledTooltip id="center-align-tooltip" placement="top" target={layerOptionsBtnId}>{layerOptionsBtnTitle}@@ -309,23 +367,23 @@ function LayerRow (props) {const getLayerItemClasses = () => {let baseClasses = 'item productsitem layer-enabled';if (isAnimating) baseClasses += ' disabled';- if (!isVisible || isDisabled) {+ if (!isVisible || disabled) {baseClasses += ' layer-hidden';} else {baseClasses += ' layer-visible';}- if (zot) baseClasses += ' zotted';+ if (activeZot || zot) baseClasses += ' zotted';return baseClasses;};const getVisibilityToggleClass = () => {let baseClasses = 'visibility';- if (isDisabled || isAnimating) {+ if (disabled || isAnimating) {baseClasses += ' disabled';} else {baseClasses += ' layer-enabled';}- if (isVisible && !isDisabled) {+ if (isVisible && !disabled) {baseClasses += ' layer-visible';} else {baseClasses += ' layer-hidden';@@ -333,13 +391,13 @@ function LayerRow (props) {return baseClasses;};- const visibilityTitle = !isVisible && !isDisabled+ const visibilityTitle = !isVisible && !disabled? 'Show layer'- : isDisabled+ : disabled? getDisabledTitle(layer): 'Hide layer';- const visibilityIconClass = isDisabled+ const visibilityIconClass = disabled? 'ban': !isVisible? ['fas', 'eye-slash']@@ -360,7 +418,7 @@ function LayerRow (props) {id={`hide${encodedLayerId}`}className={getVisibilityToggleClass()}aria-label={visibilityTitle}- onClick={() => !isAnimating && !isDisabled && toggleVisibility(layer.id, !isVisible)}+ onClick={() => !isAnimating && !disabled && toggleVisibility(layer.id, !isVisible)}>{!isAnimating && (<UncontrolledTooltip@@ -404,7 +462,7 @@ function LayerRow (props) {</a></>)}- <Zot zot={zot} layer={layer.id} isMobile={isMobile} />+ <Zot zot={activeZot || zot} layer={layer.id} isMobile={isMobile} /><div className={isVectorLayer ? 'layer-main wv-vector-layer' : 'layer-main'}><div className="layer-info" style={{ minHeight: isVectorLayer ? '60px' : '40px' }}>@@ -441,6 +499,26 @@ function LayerRow (props) {))}</div>)}+ {showZoomAlert && !hideZoomAlert && (+ <AlertUtil+ id="zoom-alert"+ isOpen+ title="Zoom in to see imagery for this layer"+ message={`Imagery for ${layer.title} is not available at this zoom level.`}+ onDismiss={() => setHideZoomAlert(true)}+ onClick={openZoomAlertModal}+ />+ )}+ {showGranuleAlert && !hideGranuleAlert && (+ <AlertUtil+ id="granule-alert"+ isOpen+ title="Try moving the map or select a different date in the layer's settings."+ message={`Imagery for ${layer.title} is not available at this location or date.`}+ onDismiss={() => setHideGranuleAlert(true)}+ onClick={openGranuleAlertModal}+ />+ )}</div></>);@@ -543,10 +621,18 @@ const mapDispatchToProps = (dispatch) => ({const { id, props } = vectorModalProps;dispatch(openCustomContent(id, props));},+ openGranuleAlertModal: () => {+ const { id, props } = granuleModalProps;+ dispatch(openCustomContent(id, props));+ },+ openZoomAlertModal: () => {+ const { id, props } = zoomModalProps;+ dispatch(openCustomContent(id, props));+ },onRemoveClick: (id) => {dispatch(removeLayer(id));},- onOptionsClick: (layer, title) => {+ onOptionsClick: (layer, title, zot) => {const key = `LAYER_OPTIONS_MODAL-${layer.id}`;googleTagManager.pushEvent({event: 'sidebar_layer_options',@@ -563,6 +649,7 @@ const mapDispatchToProps = (dispatch) => ({timeout: 150,bodyComponentProps: {layer,+ zot,},}),);@@ -640,6 +727,7 @@ LayerRow.propTypes = {hasClickableFeature: PropTypes.bool,tracksForLayer: PropTypes.array,openVectorAlertModal: PropTypes.func,+ openGranuleAlertModal: PropTypes.func,zot: PropTypes.object,isVectorLayer: PropTypes.bool,isAnimating: PropTypes.bool,diff --git a/web/js/containers/sidebar/zot.js b/web/js/containers/sidebar/zot.jsindex 0e1904815..1dd3691a9 100644--- a/web/js/containers/sidebar/zot.js+++ b/web/js/containers/sidebar/zot.js@@ -9,10 +9,21 @@ export default function Zot (props) {let tooltipString = '';const delay = isMobile ? { show: 300, hide: 300 } : { show: 50, hide: 500 };if (zot) {- const { overZoomValue, layerNotices } = zot;+ const {+ overZoomValue,+ layerNotices,+ underZoomValue,+ hasGranules,+ } = zot;if (overZoomValue) {className = 'zot overzoom';tooltipString += `Layer is overzoomed by ${zot.overZoomValue.toString()}x its maximum zoom level. <br/>`;+ } else if (underZoomValue > 0) {+ className = 'zot underzoom';+ tooltipString += `Layer is underzoomed by ${zot.underZoomValue.toString()}x its minimum zoom level; zoom in to see imagery <br/>`;+ } else if (!hasGranules) {+ className = 'zot no-granules';+ tooltipString += 'No visible imagery on this date and/or location. <br/> Try moving the map or select a different date in the layer\'s settings. <br/>';}if (layerNotices) {tooltipString += zot.layerNotices;diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex 71ee646a2..280807ea5 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -720,7 +720,7 @@ export default function mapLayerBuilder(config, cache, store) {const layer = new OlLayerTile({source: xyzSource,className,- minZoom: 7,+ minZoom: def.minZoom,extent: maxExtent,});diff --git a/web/js/modules/alerts/constants.js b/web/js/modules/alerts/constants.jsindex 25a66b2d8..97f053e76 100644--- a/web/js/modules/alerts/constants.js+++ b/web/js/modules/alerts/constants.js@@ -1,6 +1,8 @@import EventsAlertModalBody from '../../components/events/alert-body';import CompareAlertModalBody from '../../components/compare/alert';import VectorZoomAlertModalBody from '../../components/feature-alert/vector-alert-modal';+import GranuleAlertModalBody from '../../components/feature-alert/granuleAlertModal';+import ZoomAlertModalBody from '../../components/feature-alert/zoomAlertModal';export const DISABLE_VECTOR_ZOOM_ALERT = 'ALERTS/DISABLE_VECTOR_ZOOM_ALERT';export const ACTIVATE_VECTOR_ZOOM_ALERT = 'ALERTS/ACTIVATE_VECTOR_ZOOM_ALERT';@@ -41,4 +43,26 @@ export const MODAL_PROPERTIES = {desktopOnly: true,},},+ granuleModalProps: {+ id: 'granule_layer_info',+ props: {+ headerText: 'Layer imagery is not visible at this location or date.',+ backdrop: false,+ size: 'lg',+ clickableBehindModal: true,+ bodyComponent: GranuleAlertModalBody,+ desktopOnly: true,+ },+ },+ zoomModalProps: {+ id: 'zoom_layer_info',+ props: {+ headerText: 'Layer imagery is not visible at this zoom level.',+ backdrop: false,+ size: 'lg',+ clickableBehindModal: true,+ bodyComponent: ZoomAlertModalBody,+ desktopOnly: true,+ },+ },};diff --git a/web/js/modules/layers/selectors.js b/web/js/modules/layers/selectors.jsindex 428d2c59f..51fce8f14 100644--- a/web/js/modules/layers/selectors.js+++ b/web/js/modules/layers/selectors.js@@ -779,11 +779,13 @@ export function getZotsForActiveLayers(state) {lodashEach(getActiveLayersMap(state), (layer) => {if (layer.projections[projection]) {const overZoomValue = getZoomLevel(layer, zoom, projection, sources);+ const underZoomValue = Math.round((layer.minZoom - zoom) * 100) / 100;const layerNotices = getLayerNoticesForLayer(layer.id, notifications);- if (overZoomValue || layerNotices.length) {+ if (overZoomValue || layerNotices.length || underZoomValue > 0) {zotObj[layer.id] = {overZoomValue,layerNotices,+ underZoomValue,};}}diff --git a/web/scss/components/alert.scss b/web/scss/components/alert.scssindex 52eb6562e..22fa9db59 100644--- a/web/scss/components/alert.scss+++ b/web/scss/components/alert.scss@@ -13,7 +13,7 @@border-radius: 0;display: flex;align-items: center;- justify-content: center;+ justify-content: space-between;min-height: 40px;cursor: pointer;padding: 0;diff --git a/web/scss/features/customize-bands.scss b/web/scss/features/customize-bands.scssindex 24c78069f..fd0713dac 100644--- a/web/scss/features/customize-bands.scss+++ b/web/scss/features/customize-bands.scss@@ -26,6 +26,14 @@}}+.imagery-search-container {+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ margin-bottom: 1.5rem;+ padding-top: 3px;+}+.customize-bands-container {display: flex;justify-content: center;diff --git a/web/scss/features/layers.scss b/web/scss/features/layers.scssindex 3db40afd8..66f679d48 100644--- a/web/scss/features/layers.scss+++ b/web/scss/features/layers.scss@@ -22,6 +22,38 @@line-height: 0;}+.lazyload-list {+ list-style-type: none;+ height: 100px;+ width: 100%;+ display: flex;+ flex-direction: column;+ overflow: scroll;+ background-color: #383838;++ li {+ user-select: none;+ }++ li:hover {+ background-color: black;+ }+}++.imagery-search-spinner {+ height: 13px;+ width: 100%;+}++.lazyload-title {+ margin-bottom: 8px;+}++.imagery-search-container hr {+ margin-top: 20px;+ width: 100%;+}+.layer-list-container .layers-all-layer {transition: background-color 200ms ease-out;left: 0;diff --git a/web/scss/features/sidebar-panel.scss b/web/scss/features/sidebar-panel.scssindex c782916c5..49e2af176 100644--- a/web/scss/features/sidebar-panel.scss+++ b/web/scss/features/sidebar-panel.scss@@ -449,6 +449,22 @@ li.item.productsitem.inmotion,}}+ &.underzoom {+ background: #0095ff;++ &:hover {+ background: #003ada;+ }+ }++ &.no-granules {+ background: #0095ff;++ &:hover {+ background: #003ada;+ }+ }+&.layer-notice {background-color: #f60;