Interactive interface for browsing global, full-resolution satellite imagery
disabled runningdata when layers-tab is not selected
Benjaminbf4d24cb7367
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.jsindex 8d1f8014c..50a9e3a35 100644--- a/web/js/map/wv.map.ui.js+++ b/web/js/map/wv.map.ui.js@@ -836,6 +836,9 @@ wv.map.ui = wv.map.ui || function(models, config, components) {if( self.mapIsbeingDragged) {return;}+ if(models.naturalEvents.active || models.data.active) {+ return;+ }if( models.anim ) {if(models.anim.rangeState.playing) {return; // don't get running data if map is animatingdiff --git a/web/js/naturalEvents/wv.naturalEvents.ui.js b/web/js/naturalEvents/wv.naturalEvents.ui.jsindex ff0122c30..5640d79eb 100644--- a/web/js/naturalEvents/wv.naturalEvents.ui.js+++ b/web/js/naturalEvents/wv.naturalEvents.ui.js@@ -39,12 +39,14 @@ wv.naturalEvents.ui = wv.naturalEvents.ui || function(models, ui, config) {model.events.on( "queryResults", onQueryResults );ui.sidebar.events.on("select", function(tab) {if ( tab === "events" ) {+ model.active = true;resize();if (mapController.current) {mapController.draw(mapController.current);}}else {+ model.active = false;mapController.dispose();$notification.dialog('close');}