Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Merge branch 'develop' of https://github.com/nasa-gibs/worldview into redux-merge-with-timeline2

Benjamin King60e69b7e7aa7
diff --cc web/js/map/ui.js
index 7efa47f5f,f50cabd77..8c10be6bd
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@@ -1058,14 -980,15 +1058,13 @@@ export function mapui(models, config, s
}
// Don't add data runners if we're on the events or data tabs, or if map is animating
var isEventsTabActive =
- typeof models.naturalEvents !== 'undefined' &&
- models.naturalEvents.active;
+ typeof state.events !== 'undefined' && state.events.active;
var isDataTabActive =
- typeof models.data !== 'undefined' && models.data.active;
- var isMapAnimating =
- typeof models.anim !== 'undefined' && models.anim.rangeState.playing;
+ typeof state.data !== 'undefined' && state.data.active;
- var isMapAnimating =
- typeof models.anim !== 'undefined' && models.anim.rangeState.playing;
++ var isMapAnimating = state.animation.isPlaying;
if (isEventsTabActive || isDataTabActive || isMapAnimating) return;
- dataRunner.newPoint(pixels, map);
+ if (!self.mapIsbeingDragged && !self.mapIsbeingZoomed) dataRunner.newPoint(pixels, map);
}
$(map.getViewport())
.mouseout(function(e) {