Interactive interface for browsing global, full-resolution satellite imagery
Hack to ignore SEDAC border layer in setLayerOpacity
Ryan Boller6d5f82978119
diff --git a/js/map.js b/js/map.jsindex aa8529ea9..18f4a9d41 100644--- a/js/map.js+++ b/js/map.js@@ -367,7 +367,8 @@ SOTE.widget.Map.prototype.setLayerVisibility = function(layerNum, visible)SOTE.widget.Map.prototype.setLayerOpacity = function(layerNum, opacity){if ((layerNum > this.map.layers.length) ||- (layerNum < 0))+ (layerNum < 0) ||+ (this.map.layers[layerNum].name == this.SEDAC_BORDER_LAYER_NAME))return;this.map.layers[layerNum].setOpacity(opacity);