Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Merge pull request #3352 from nasa-gibs/disable-hls-grid-download-3343

Benjaki20d6a7f4caeab
diff --cc web/js/containers/toolbar.js
index cfbc32b6a,a50260b8a..9b8f01b5e
--- a/web/js/containers/toolbar.js
+++ b/web/js/containers/toolbar.js
@@@ -29,10 -32,11 +32,11 @@@ import
import { notificationWarnings } from '../modules/image-download/constants';
import Notify from '../components/image-download/notify';
import { hasCustomPaletteInActiveProjection } from '../modules/palettes/util';
-import Geosearch from '../components/geosearch/geosearch';
-import { toggleShowGeosearch, toggleDialogVisible } from '../modules/geosearch/actions';
-import { isGeosearchFeatureEnabled } from '../modules/geosearch/util';
+import LocationSearch from '../components/location-search/location-search';
+import { toggleShowLocationSearch, toggleDialogVisible } from '../modules/location-search/actions';
+import { isLocationSearchFeatureEnabled } from '../modules/location-search/util';
import { getAllActiveLayers } from '../modules/layers/selectors';
+ import { hasNonDownloadableVisibleLayer, getNonDownloadableLayerWarning, getNonDownloadableLayers } from '../modules/image-download/util';
Promise.config({ cancellation: true });
@@@ -367,8 -375,9 +375,9 @@@ const mapStateToProps = (state) =>
lodashGet(state, 'map.ui.selected')
&& !isCompareActive,
),
+ hasNonDownloadableLayer: hasNonDownloadableVisibleLayer(visibleLayersForProj),
isCompareActive,
- isGeosearchExpanded,
+ isLocationSearchExpanded,
isMobile,
shouldBeCollapsed,
hasCustomPalette: hasCustomPaletteInActiveProjection(
@@@ -393,10 -403,10 +403,10 @@@ const mapDispatchToProps = (dispatch) =
toggleDialogVisible: (isVisible) => {
dispatch(toggleDialogVisible(isVisible));
},
- toggleShowGeosearch: () => {
- dispatch(toggleShowGeosearch());
+ toggleShowLocationSearch: () => {
+ dispatch(toggleShowLocationSearch());
},
- refreshStateAfterImageDownload: (activePalettes, rotation, isGraticule) => {
+ refreshStateAfterImageDownload: (activePalettes, rotation, isGraticule, nonDownloadableLayers) => {
if (activePalettes) {
dispatch(refreshPalettes(activePalettes));
}