Interactive interface for browsing global, full-resolution satellite imagery
Now properly zero-padding dates in activateRelevantLayersDisableTheRest - was a bug with properly enabling the active layer since it wasn't zero-padded
Ryan Boller57190f2633b5
diff --git a/js/map.js b/js/map.jsindex e3443788d..f17a76fab 100644--- a/js/map.js+++ b/js/map.js@@ -171,7 +171,7 @@ SOTE.widget.Map.prototype.activateRelevantLayersDisableTheRest = function(activevar allLayers = this.getAllLayers();var nLayers = allLayers.length;var myDate = SOTE.util.UTCDateFromISO8601String(time);- time = myDate.getUTCFullYear() + "-" + eval(myDate.getUTCMonth()+1) + "-" + myDate.getUTCDate();+ time = myDate.getUTCFullYear() + "-" + SOTE.util.zeroPad(eval(myDate.getUTCMonth()+1),2) + "-" + SOTE.util.zeroPad(myDate.getUTCDate(),2);// Loop through all loaded OpenLayers layersfor (var i=0; i<nLayers; i++){