Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Merge branch 'development' into fix-datarunner

Jo Spraguebffc4fe0298b
diff --cc web/js/map/wv.map.ui.js
index 4564245ce,bc9bddb8b..5430cb874
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@@ -875,13 -868,16 +868,12 @@@ wv.map.ui = wv.map.ui || function (mode
if (self.mapIsbeingDragged || wv.util.browser.small) {
return;
}
-
- if (typeof models.naturalEvents === 'undefined' ||
- typeof models.data === 'undefined' ||
- models.naturalEvents.active || models.data.active) {
- return;
- }
- if (models.anim) {
- if (models.anim.rangeState.playing) {
- return; // don't get running data if map is animating
- }
- }
+ // 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);
+ var isDataTabActive = (typeof models.data !== 'undefined' && models.data.active);
+ var isMapAnimating = (typeof models.anim !== 'undefined' && models.anim.rangeState.playing);
+ if (isEventsTabActive || isDataTabActive || isMapAnimating) return;
-
++
dataRunner.newPoint(pixels, map);
}
$(map.getViewport())