Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Cleaned comments for data runner throttle

Paco Dupont0133ecfa7eda
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index b8f671c1e..487c8ae08 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -876,10 +876,9 @@ wv.map.ui = wv.map.ui || function(models, config, components) {
return;
}
- // Don't add data runners if we're on the events or data tabs
+ // 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);
- // Don't add data runners if map is animating
var isMapAnimating = (typeof models.anim !== 'undefined' && models.anim.rangeState.playing);
if (isEventsTabActive || isDataTabActive || isMapAnimating) return;