Interactive interface for browsing global, full-resolution satellite imagery
Added fix to the image download tool, whereby only the top-most visible layer will be sent to the download script.
Shriram Ilavajhalaab0baa71cb47
diff --git a/js/imageDownload.js b/js/imageDownload.jsindex 8d3e7b689..816886be2 100644--- a/js/imageDownload.js+++ b/js/imageDownload.js@@ -158,18 +158,19 @@ SOTE.widget.ImageDownload.prototype.updateComponent = function(qs){//dlURL += "&switch="+s;dlURL += "&epsg="+epsg;dlURL +="&layers=";- //Reverse the order of overlays to get the correct layer ordering.if (products != ""){var a = products.split("~");+ //Add the first (top most) visible baselayer.var base = a[0].split(",");- base.reverse(); base.pop();- for(var i=0; i<base.length; i++){+ //base.reverse(); base.pop();+ for(var i=1; i<base.length; i++){if(base[i].charAt(0)!="!") {dlURL += base[i]+",";+ break;}}-+var overlays = a[1].split(/[\.,]/);overlays.reverse(); overlays.pop();