Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix bug hiding imagery when downloading imagery in polar views #1828

Benjamin King1d2c34f5cef3
diff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.js
index 2d650beee..ae712b038 100644
--- a/web/js/map/layerbuilder.js
+++ b/web/js/map/layerbuilder.js
@@ -42,14 +42,17 @@ export function mapLayerBuilder(models, config, cache, ui, store) {
}
return;
case OPEN_CUSTOM_MODAL:
- if (action.key === 'TOOLBAR_SNAPSHOT') {
+ if (
+ action.key === 'TOOLBAR_SNAPSHOT' &&
+ store.getState().proj.id === 'geographic'
+ ) {
return hideWrap();
}
return;
case TOGGLE_GIF:
case EXIT_ANIMATION:
const active = store.getState().animation.gifActive;
- if (active) {
+ if (active && store.getState().proj.id === 'geographic') {
return hideWrap();
} else if (self.hidingWrap) {
return showWrap();