Interactive interface for browsing global, full-resolution satellite imagery
WV-970: Fixed reference to old style of baselayers/overlays
Mike McGanne0ab9e6463bf
diff --git a/src/js/data/wv.data.model.js b/src/js/data/wv.data.model.jsindex e75718354..79bb23bfc 100644--- a/src/js/data/wv.data.model.js+++ b/src/js/data/wv.data.model.js@@ -395,7 +395,7 @@ wv.data.model = wv.data.model || function(models, config) {// FIXME: This is a hack for now and should be cleaned up when// everything changes to models.var products = self.groupByProducts();- $.each(self.selectedGranules, function(index, selected) {+ _.each(self.selectedGranules, function(selected) {if ( !products[selected.product] &&!productActive(selected.product)) {self.unselectGranule(selected);@@ -405,13 +405,11 @@ wv.data.model = wv.data.model || function(models, config) {var productActive = function(product) {var active = false;- $.each(["baselayers", "overlays"], function(i, type) {- $.each(layersModel.active[type], function(j, layer) {- if ( layer.product === product ) {- active = true;- return false;- }- });+ _.each(layersModel.active, function(layer) {+ if ( layer.product === product ) {+ active = true;+ return false;+ }});return active;};diff --git a/src/js/data/wv.data.results.js b/src/js/data/wv.data.results.jsindex 03257e198..2fc5d989f 100644--- a/src/js/data/wv.data.results.js+++ b/src/js/data/wv.data.results.js@@ -358,9 +358,7 @@ wv.data.results.extentFilter = function(projection, extent) {};if ( !extent ) { throw new Error("No extent"); }- console.log("before", extent);extent = new OpenLayers.Bounds(extent);- console.log("extent", extent);return self;};