Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

setVisiblity to false once the layer becomes stale

Mike McGann83ffc721bb58
diff --git a/js/Worldview/Map/DailyProduct.js b/js/Worldview/Map/DailyProduct.js
index ee7971466..705b162d2 100644
--- a/js/Worldview/Map/DailyProduct.js
+++ b/js/Worldview/Map/DailyProduct.js
@@ -280,6 +280,7 @@ Worldview.Map.DailyProduct = function(map, config) {
return;
}
$.each(cachedLayers, function(day, layer) {
+ layer.setVisibility(false);
staleLayers.push(layer);
});
cachedLayers = {};