Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

disabled running-data in unwanted situations

Benjamin2040070d36ec
diff --git a/web/js/map/wv.map.runningdata.js b/web/js/map/wv.map.runningdata.js
index abea98f8b..da09cfa83 100644
--- a/web/js/map/wv.map.runningdata.js
+++ b/web/js/map/wv.map.runningdata.js
@@ -219,11 +219,14 @@ wv.map.runningdata = wv.map.runningdata || function(models) {
*/
self.newPoint = function(coords, map) {
self.activeLayers = [];
- map.forEachLayerAtPixel(coords, function(layer, data){
+ map.forEachLayerAtPixel(coords, function(layer, data) {
var hex;
var palette;
var legend;
var layerId;
+ if(!layer.wv) {
+ return;
+ }
if(layer.wv.def.palette) {
layerId = layer.wv.id;
if(!layerIsInView(layerId)) {
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index 50a9e3a35..0321388c7 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -833,7 +833,7 @@ wv.map.ui = wv.map.ui || function(models, config, components) {
});
// setting a limit on running-data retrievel
- if( self.mapIsbeingDragged) {
+ if( self.mapIsbeingDragged || outside) {
return;
}
if(models.naturalEvents.active || models.data.active) {