Interactive interface for browsing global, full-resolution satellite imagery
All layers rechecked on add/visibility/opacity change
Mike McGann1cf49f1b6e18
diff --git a/src/js/map/wv.map.ui.js b/src/js/map/wv.map.ui.jsindex be8433fec..b4e0119b6 100644--- a/src/js/map/wv.map.ui.js+++ b/src/js/map/wv.map.ui.js@@ -71,8 +71,7 @@ wv.map.ui = wv.map.ui || function(models, config) {};var addLayer = function(def) {- updateLayer(def);- updateMap();+ updateLayers();};var updateLayer = function(def) {@@ -106,23 +105,15 @@ wv.map.ui = wv.map.ui || function(models, config) {};var updateVisibility = function(def, visible) {- updateLayer(def);- updateMap();+ updateLayers();};var updateOpacity = function(def) {- updateLayer(def);- updateMap();+ updateLayers();};var updateDate = function() {- var defs = models.layers.get();- _.each(defs, function(def) {- if ( def.period === "daily" ) {- updateLayer(def);- }- });- updateMap();+ updateLayers();};var clearLayers = function(map) {diff --git a/src/js/wv.main.js b/src/js/wv.main.jsindex 481047834..69e49e4ee 100644--- a/src/js/wv.main.js+++ b/src/js/wv.main.js@@ -72,7 +72,6 @@ $(function() {_.each(parsers, function(parser) {parser(state, errors, config);});- console.log(state);requirements = [wv.palettes.requirements(state, config)];