Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed condition for running-data retrievel limit. Closes #616

Paco Dupont09fa7b8ab2a5
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index dc3b9cb55..912614745 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -875,9 +875,9 @@ wv.map.ui = wv.map.ui || function(models, config, components) {
if (self.mapIsbeingDragged || wv.util.browser.small) {
return;
}
- if (typeof models.naturalEvents == 'undefined' ||
- typeof models.data == 'undefined' ||
- models.naturalEvents.active || models.data.active) {
+ if ((typeof models.naturalEvents != 'undefined' &&
+ models.naturalEvents.active) ||
+ (typeof models.data != 'undefined' && models.data.active)) {
return;
}
if (models.anim) {