Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix no-data explanation modal #1814

Benjamin King2e72482ffdf8
diff --git a/web/css/dataDownload.css b/web/css/dataDownload.css
index 7ebddd614..c18daa712 100644
--- a/web/css/dataDownload.css
+++ b/web/css/dataDownload.css
@@ -8,7 +8,7 @@
}
#wv-data-selection li {
- font: 300 12px/12px "Open Sans", sans-serif;
+ font: 300 12px/12px 'Open Sans', sans-serif;
margin-top: 3px;
display: list-item;
list-style-type: none;
@@ -225,20 +225,20 @@
background: rgba(100, 100, 100, 0.6);
}
-.dl-group[value="__NO_PRODUCT"] ul li {
+.dl-group[value='__NO_PRODUCT'] ul li {
background: #999;
}
-.dl-group[value="__NO_PRODUCT"] ul li:hover {
+.dl-group[value='__NO_PRODUCT'] ul li:hover {
background: #999;
}
-.dl-group[value="__NO_PRODUCT"] li,
-.dl-group[value="__NO_PRODUCT"] ul {
+.dl-group[value='__NO_PRODUCT'] li,
+.dl-group[value='__NO_PRODUCT'] ul {
cursor: default;
}
-.dl-group[value="__NO_PRODUCT"]:hover {
+.dl-group[value='__NO_PRODUCT']:hover {
background: none;
cursor: default;
}
@@ -263,7 +263,7 @@
-o-box-sizing: border-box;
}
-#wv-datacontent div[data-product="__NO_PRODUCT"] a {
+#wv-datacontent div[data-product='__NO_PRODUCT'] a {
color: #000;
}
@@ -278,3 +278,6 @@
.wv-datacategory {
list-style: none;
}
+#indicator {
+ z-index: 100;
+}
diff --git a/web/js/containers/sidebar/data.js b/web/js/containers/sidebar/data.js
index a13f28e41..9f35c9f99 100644
--- a/web/js/containers/sidebar/data.js
+++ b/web/js/containers/sidebar/data.js
@@ -9,6 +9,43 @@ import {
findAvailableProduct
} from '../../modules/data/selectors';
import { selectProduct } from '../../modules/data/actions';
+import { openCustomContent } from '../../modules/modal/actions';
+
+const CustomBodyModalContent = () => {
+ return (
+ <React.Fragment>
+ <h3 className="wv-data-unavailable-header">
+ Why are these layers not available for downloading?
+ </h3>
+ <p>
+ Some layers in Worldview do not have corresponding source data products
+ available for download. These include National Boundaries, Orbit Tracks,
+ Earth at Night, and MODIS Corrected Reflectance products.
+ <br />
+ <br />
+ For a downloadable product similar to MODIS Corrected Reflectance,
+ please try the MODIS Land Surface Reflectance layers available in
+ Worldview. If you would like to generate MODIS Corrected Reflectance
+ imagery yourself, please see the following document:{' '}
+ <a
+ style={{ overflowWrap: 'break-word' }}
+ href="https://earthdata.nasa.gov/sites/default/files/field/document/MODIS_True_Color.pdf"
+ target="_blank"
+ >
+ https://earthdata.nasa.gov/sites/default/files/field/document/MODIS_True_Color.pdf
+ </a>
+ <br />
+ <br />
+ If you would like to download only an image, please use the "camera"
+ icon in the upper right.
+ <br />
+ <br /> Data download will not work for "Terra and Aqua" Fires, select
+ Terra only Fires and/or Aqua only Fires to download the associated data
+ files.
+ </p>
+ </React.Fragment>
+ );
+};
class Data extends React.Component {
render() {
@@ -70,6 +107,15 @@ Data.propTypes = {
};
const mapDispatchToProps = dispatch => ({
+ showUnavailableReason: () => {
+ dispatch(
+ openCustomContent('data_download_no_data_notify', {
+ headerText: 'Notify',
+ bodyComponent: CustomBodyModalContent,
+ size: 'lg'
+ })
+ );
+ },
findProductToSelect: products => {
const newSelection = findAvailableProduct(products);