Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

* Time Slider Working

Tilak Joshi51c2043fe8fb
diff --git a/css/dateSpan-min.css b/css/dateSpan-min.css
index 9b73ffc98..531957a2c 100644
--- a/css/dateSpan-min.css
+++ b/css/dateSpan-min.css
@@ -1 +1 @@
-.spanContainerLabel{width:25%;float:left;text-shadow:none;display:block;margin-top:20px;text-align:center;font-size:.1em;color:#fff}.spanContainerLabelDate,.spanContainerLabelDay{display:block;font-size:.25em}.spanContainerLabelDay{font-size:.16em}.spanContainer{float:right;min-height:100%;width:97%;margin-top:10px;margin-bottom:10px}.dateSpan{width:100%}.datespan div.olMap{width:11.78%;height:100px;float:left;-moz-box-shadow:0 0 5px 5px #111;-webkit-box-shadow:0 0 5px 5px #111;box-shadow:0 0 5px 5px #111;margin:20px 0 0 2.5%!important;position:relative;left:-1.25%;display:block}a.ecbutton{display:block;width:24px;height:24px;float:right;margin-right:5px;position:relative}a.collapse{background-image:url("../images/collapseDown.png")}a.expand{background-image:url("../images/expandUp.png")}.dateSpanSlider{visibility:hidden}div.ui-slider{height:0;width:85.5%;border:red 0 solid;z-index:1002;float:left;margin:0 0 0 7.24%}div.ui-slider-switch{display:none}a.ui-slider-handle{height:130px;display:block;width:14%;background:rgba(228,108,10,.2);border:#e46c0a 2px solid;z-index:1004;position:relative;top:-142px;margin:10px 0 0 -7%!important;padding:5px 0 5px 0}span.sliderText{font:14px/14px "Gill Sans",sans-serif,serif;font-weight:500;color:#fff;text-shadow:none;z-index:1005}a.ui-btn{margin:0}a.ui-shadow{box-shadow:none}a.ui-btn-up-c{box-shadow:none}#mapdiv{margin:0;padding:0;left:0}.dateitem{cursor:pointer!important}
\ No newline at end of file
+.datespan ul,menu,dir{-webkit-margin-before:0;-webkit-margin-after:0;-webkit-margin-start:0;-webkit-margin-end:0;-webkit-padding-start:0}.spanContainerLabel{width:25%;float:left;text-shadow:none;display:block;margin-top:20px;text-align:center;font-size:.1em;color:#fff}.spanContainerLabelDate,.spanContainerLabelDay{display:block;font-size:.25em}.spanContainerLabelDay{font-size:.16em}.spanContainer{float:left;min-height:100%;width:100%}.datespan{width:100%;overflow:hidden;background:0}.datespan div.olMap{width:11.78%;height:100px;float:left;-moz-box-shadow:0 0 5px 5px #111;-webkit-box-shadow:0 0 5px 5px #111;box-shadow:0 0 5px 5px #111;margin:20px 0 0 2.5%!important;position:relative;left:-1.25%;display:block}a.ecbutton{display:block;width:24px;height:29px;float:left;position:relative;background:rgba(68,68,68,.85)}a.collapse{background-image:url("../images/collapseDown.png");background-repeat:no-repeat}a.expand{background-image:url("../images/expandUp.png");background-repeat:no-repeat}.dateSpanSlider{display:none!important}div.slider{background:rgba(68,68,68,.85);margin-bottom:0}ul.sliderLabel{text-shadow:none;color:#ccc;margin:-20px 0 0 0;background:0;height:20px;overflow:hidden}ul.sliderLabel li{float:left;background:0;margin:0;text-align:center;overflow:hidden}div.sliderDivYear{clear:both}div.sliderDivMonth{background:rgba(68,68,68,.6)}.disabledItem{color:#444!important}a.ui-slider-handle{position:relative;height:80%;top:-3%;background:rgba(31,143,237,.26);border:#1f8fed 2px solid}div.ui-slider{border:0;background:transparent;margin:0;top:0;height:23px}.dateHolder{display:inline-block;float:left;width:15%;background:rgba(68,68,68,.85);margin-bottom:10px;text-shadow:none;color:#ccc;font-weight:bold;text-align:center;padding:5px 0}a.ui-btn{margin:0}a.ui-shadow{box-shadow:none}a.ui-btn-up-c{box-shadow:none}#mapdiv{margin:0;padding:0;left:0}.dateitem{cursor:pointer!important}
\ No newline at end of file
diff --git a/css/map-min.css b/css/map-min.css
index cfdfb35db..f14a67262 100644
--- a/css/map-min.css
+++ b/css/map-min.css
@@ -1 +1 @@
-div.olControlScaleLineCustom{position:absolute;right:12px;bottom:160px;z-index:2000;display:block;font-size:xx-small;color:#eee}.olControlScaleLineCustomBottom{border:solid 2px black;border-bottom:0;margin-top:-2px;text-align:center;background-color:rgba(38,38,38,0.4)}.olControlScaleLineCustomTop{border:solid 2px black;border-top:0;text-align:center;background-color:rgba(38,38,38,0.4)}@media only screen and (max-width:600px){html,body{height:117%}}.olControlAttribution{position:absolute;font-size:10px;bottom:0!important;right:0!important;background:rgba(0,0,0,0.1);font-family:Arial;padding:2px 4px;border-radius:5px 0 0 0}div.olMap{background-color:#fff}div.olControlZoomPanelCustom{top:71px;left:14px;height:108px;width:36px;position:relative!important;float:right;margin:0 20px 0 0;cursor:pointer}div.olControlZoomPanelCustom div{width:36px;height:36px;left:0}div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive,div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive{position:absolute}div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive{background:rgba(68,68,68,.85);top:0;background-position:0 0;border-radius:5px 5px 0 0}div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive{background:rgba(68,68,68,.85);top:72px;background-position:0 -72px;border-radius:0 0 5px 5px;top:37px}div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive:after,div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive:after{font-weight:bold;content:'+';font-size:36px;padding:7px;z-index:2000;color:#fff;line-height:1em}div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive:after{content:'–';line-height:.9em;padding:0 8px}div.olControlZoomPanelCustom .olControlZoomToMaxExtentItemInactive{top:36px;background-position:0 -36px;display:none}.olControlLayerSwitcher{position:absolute;top:180px;right:0;width:35em;font-family:sans-serif;font-weight:bold;margin-top:3px;margin-left:3px;margin-bottom:3px;font-size:smaller;color:white;background-color:transparent}.olControlLayerSwitcher .layersDiv{padding-top:5px;padding-left:1px;padding-bottom:5px;padding-right:3px;background-color:darkblue;width:100%}.olControlLayerSwitcher .layersDiv .baseLbl,.olControlLayerSwitcher .layersDiv .dataLbl{margin-top:3px;margin-left:3px;margin-bottom:3px}.olControlLayerSwitcher .layersDiv .baseLayersDiv{padding-left:10px;overflow:auto;height:80px;opacity:1!important}.olControlLayerSwitcher .layersDiv .dataLayersDiv{padding-left:10px;overflow:auto;height:250px;opacity:1!important}.olControlLayerSwitcher .maximizeDiv,.olControlLayerSwitcher .minimizeDiv{top:5px;right:0}#title,#tags,#shortdesc{display:none}
\ No newline at end of file
+div.olControlScaleLineCustom{position:absolute;right:12px;bottom:160px;z-index:2000;display:block;font-size:xx-small;color:#eee}.olControlScaleLineCustomBottom{border:solid 2px black;border-bottom:0;margin-top:-2px;text-align:center;background-color:rgba(38,38,38,0.4)}.olControlScaleLineCustomTop{border:solid 2px black;border-top:0;text-align:center;background-color:rgba(38,38,38,0.4)}@media only screen and (max-width:600px){html,body{height:117%}}.olControlAttribution{position:absolute;font-size:10px;bottom:0!important;right:0!important;background:rgba(0,0,0,0.1);font-family:Arial;padding:2px 4px;border-radius:5px 0 0 0}div.olMap{background-color:#000}div.olControlZoomPanelCustom{top:71px;left:14px;height:108px;width:36px;position:relative!important;float:right;margin:0 20px 0 0;cursor:pointer}div.olControlZoomPanelCustom div{width:36px;height:36px;left:0}div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive,div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive{position:absolute}div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive{background:rgba(68,68,68,.85);top:0;background-position:0 0;border-radius:5px 5px 0 0}div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive{background:rgba(68,68,68,.85);top:72px;background-position:0 -72px;border-radius:0 0 5px 5px;top:37px}div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive:after,div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive:after{font-weight:bold;content:'+';font-size:36px;padding:7px;z-index:2000;color:#fff;line-height:1em}div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive:after{content:'–';line-height:.9em;padding:0 8px}div.olControlZoomPanelCustom .olControlZoomToMaxExtentItemInactive{top:36px;background-position:0 -36px;display:none}.olControlLayerSwitcher{position:absolute;top:180px;right:0;width:35em;font-family:sans-serif;font-weight:bold;margin-top:3px;margin-left:3px;margin-bottom:3px;font-size:smaller;color:white;background-color:transparent}.olControlLayerSwitcher .layersDiv{padding-top:5px;padding-left:1px;padding-bottom:5px;padding-right:3px;background-color:darkblue;width:100%}.olControlLayerSwitcher .layersDiv .baseLbl,.olControlLayerSwitcher .layersDiv .dataLbl{margin-top:3px;margin-left:3px;margin-bottom:3px}.olControlLayerSwitcher .layersDiv .baseLayersDiv{padding-left:10px;overflow:auto;height:80px;opacity:1!important}.olControlLayerSwitcher .layersDiv .dataLayersDiv{padding-left:10px;overflow:auto;height:250px;opacity:1!important}.olControlLayerSwitcher .maximizeDiv,.olControlLayerSwitcher .minimizeDiv{top:5px;right:0}.olLayerGridTile .olTileImage{-webkit-transition:none;-moz-transition:none;-o-transition:all 0 none;transition:none}#title,#tags,#shortdesc{display:none}
\ No newline at end of file
diff --git a/css/sote-min.css b/css/sote-min.css
index d7822a967..2405c5892 100644
--- a/css/sote-min.css
+++ b/css/sote-min.css
@@ -1 +1 @@
-html,body,div,ul,li{display:block;margin:0;padding:0}div{display:block}.yui-skin-sam .yui-panel{background:transparent;width:700px;font:13px "Gill Sans",sans-serif;font-weight:100}.yui-skin-sam .yui-panel-container .hd{background:rgba(0,0,0,0.5);color:#fff;border:0;padding:0}.yui-skin-sam .yui-panel-container .bd{background:rgba(0,0,0,0.8);color:#d5d5d5}.yui-skin-sam .yui-panel-container .bd h3{color:#fff;font:18px "Gill Sans",sans-serif;font-weight:400;text-decoration:none}.yui-skin-sam .yui-panel-container .bd h4{color:#000;font:18px "Gill Sans",sans-serif;font-weight:400;text-decoration:none}.yui-skin-sam .yui-panel-container .bd a{color:#48a8ff}#switch{display:block;position:absolute;border-radius:5px;top:150px;overflow:hidden;background:rgba(68,68,68,.85);right:0;z-index:1000;margin-right:5px}#switch div{display:block;border-radius:5px;padding:5px}#switch img{display:block!important}#switch ul li div.hidden{display:none}#switch ul li:hover div.hidden{display:block}#permpanel h3{color:#fff;font:12px "Gill Sans",sans-serif;font-weight:100;text-decoration:none}#permpanel input[type='text']{width:280px}div.horizontalContainer{width:100%;display:block;float:left;min-height:40px;background-color:rgba(68,68,68,.85);position:absolute;overflow:hidden;bottom:0;z-index:1002}#aboutus,#permalink{float:right;margin-top:5px;position:relative;z-index:1002;display:block;width:50px}#aboutus,#permalink img{width:50px;height:44.5px;border:0}#aboutus,#permalink a{text-decoration:none;border:0}#permalink_content{margin-top:10px}.hidden{display:none}#products{z-index:1006;display:block;float:left;position:absolute;left:0;top:15%}#banner{z-index:1006;float:left;position:relative}#hazard,#transition{z-index:1007;clear:both;float:left;display:block;position:relative}#transition{width:22%;height:100px;text-shadow:none;color:#262626;margin-top:55px}#hazard{top:-13px}#map{position:absolute!important;left:0;top:0}#hazard ul{padding:0;margin-left:0;font:13px "Gill Sans",sans-serif;text-align:center;text-shadow:none}#hazard ul li{margin:0;float:left;border-width:1.5pt;padding:0 5px 0 5px}#hazard ul li.disabled{color:#9c9c9c}#hazard ul.collapsible li div{position:absolute;left:-999em}#hazard ul.collapsible:hover li div{position:relative;left:0}#hazard ul li:hover{border-color:yellow}#hazard_item0{background-color:#953735;border-color:#d99694}#hazard_item0.disabled,#hazard_item0.disabled:hover{background-color:#5c4c4d;border-color:#715f60}#hazard_item1{background-color:#17375e;border-color:#558ed5}#hazard_item1.disabled,#hazard_item1.disabled:hover{background-color:#36424c;border-color:#4e6477}#hazard_item2{background-color:#4a452a;border-color:#948a54}#hazard_item2.disabled,#hazard_item2.disabled:hover{background-color:#3a3834;border-color:#69634e}#hazard_item3{background-color:#a0a26c;border-color:#d1d46f}#hazard_item3.disabled,#hazard_item3.disabled:hover{background-color:#656756;border-color:#7f8061}#hazard_item4{background-color:#7f7f7f;border-color:#a6a6a6}#hazard_item4.disabled,#hazard_item4.disabled:hover{background-color:#3f3f3f;border-color:#616161}#hazard_item5{background-color:#4f6228;border-color:#65754f}#hazard_item5.disabled,#hazard_item5.disabled:hover{background-color:#535343;border-color:#65754f}#hazard_item6{background-color:#403152;border-color:#b3a2c7}#transition ul{font:10px "Gill Sans",sans-serif;text-align:center}#transition ul li,#transition ul li.disabled,#transition ul li.disabled:hover{background-color:#4c595c;border-color:#708788;border-width:.75pt}#transition ul li.selected{background-color:#984807;border-color:#fac090}#transition ul li:hover{border-color:yellow}
\ No newline at end of file
+html,body,div,ul,li{display:block;margin:0;padding:0}body{min-width:600px}div{display:block}.yui-skin-sam .yui-panel{background:transparent;width:700px;font:13px "Gill Sans",sans-serif;font-weight:100}.yui-skin-sam .yui-panel-container .hd{background:rgba(0,0,0,0.5);color:#fff;border:0;padding:0}.yui-skin-sam .yui-panel-container .bd{background:rgba(0,0,0,0.8);color:#d5d5d5}.yui-skin-sam .yui-panel-container .bd h3{color:#fff;font:18px "Gill Sans",sans-serif;font-weight:400;text-decoration:none}.yui-skin-sam .yui-panel-container .bd h4{color:#000;font:18px "Gill Sans",sans-serif;font-weight:400;text-decoration:none}.yui-skin-sam .yui-panel-container .bd a{color:#48a8ff}#switch{display:block;position:absolute;border-radius:5px;top:150px;overflow:hidden;background:rgba(68,68,68,.85);right:0;z-index:1000;margin-right:5px}#switch div{display:block;border-radius:5px;padding:5px}#switch img{display:block!important}#switch ul li div.hidden{display:none}#switch ul li:hover div.hidden{display:block}#permpanel h3{color:#fff;font:12px "Gill Sans",sans-serif;font-weight:100;text-decoration:none}#permpanel input[type='text']{width:280px}div.horizontalContainer{width:100%;display:block;float:left;position:absolute;overflow:hidden;bottom:0;z-index:1002;padding:5px 0 5px 0}#aboutus,#permalink{float:right;margin-top:5px;position:relative;z-index:1002;display:block;width:50px}#aboutus,#permalink img{width:50px;height:44.5px;border:0}#aboutus,#permalink a{text-decoration:none;border:0}#permalink_content{margin-top:10px}.hidden{display:none}#products{z-index:1006;display:block;float:left;position:absolute;left:0;top:15%}#banner{z-index:1006;float:left;position:relative}#hazard,#transition{z-index:1007;clear:both;float:left;display:block;position:relative}#transition{width:22%;height:100px;text-shadow:none;color:#262626;margin-top:55px}#hazard{top:-13px}#map{position:absolute!important;left:0;top:0}#hazard ul{padding:0;margin-left:0;font:13px "Gill Sans",sans-serif;text-align:center;text-shadow:none}#hazard ul li{margin:0;float:left;border-width:1.5pt;padding:0 5px 0 5px}#hazard ul li.disabled{color:#9c9c9c}#hazard ul.collapsible li div{position:absolute;left:-999em}#hazard ul.collapsible:hover li div{position:relative;left:0}#hazard ul li:hover{border-color:yellow}#hazard_item0{background-color:#953735;border-color:#d99694}#hazard_item0.disabled,#hazard_item0.disabled:hover{background-color:#5c4c4d;border-color:#715f60}#hazard_item1{background-color:#17375e;border-color:#558ed5}#hazard_item1.disabled,#hazard_item1.disabled:hover{background-color:#36424c;border-color:#4e6477}#hazard_item2{background-color:#4a452a;border-color:#948a54}#hazard_item2.disabled,#hazard_item2.disabled:hover{background-color:#3a3834;border-color:#69634e}#hazard_item3{background-color:#a0a26c;border-color:#d1d46f}#hazard_item3.disabled,#hazard_item3.disabled:hover{background-color:#656756;border-color:#7f8061}#hazard_item4{background-color:#7f7f7f;border-color:#a6a6a6}#hazard_item4.disabled,#hazard_item4.disabled:hover{background-color:#3f3f3f;border-color:#616161}#hazard_item5{background-color:#4f6228;border-color:#65754f}#hazard_item5.disabled,#hazard_item5.disabled:hover{background-color:#535343;border-color:#65754f}#hazard_item6{background-color:#403152;border-color:#b3a2c7}#transition ul{font:10px "Gill Sans",sans-serif;text-align:center}#transition ul li,#transition ul li.disabled,#transition ul li.disabled:hover{background-color:#4c595c;border-color:#708788;border-width:.75pt}#transition ul li.selected{background-color:#984807;border-color:#fac090}#transition ul li:hover{border-color:yellow}
\ No newline at end of file
diff --git a/js/dateSpan-min.js b/js/dateSpan-min.js
index 232d356f8..9f6a53f05 100644
--- a/js/dateSpan-min.js
+++ b/js/dateSpan-min.js
@@ -1 +1 @@
-SOTE.namespace("SOTE.widget.DateSpan");SOTE.widget.DateSpan=function(containerId,config){this.container=document.getElementById(containerId);if(this.container==null){this.setStatus("Error: element '"+containerId+"' not found!",true);return}this.id=containerId;this.containerId=containerId;if(config===undefined){config={}}if(config.dataSourceUrl===undefined){config.dataSourceUrl=null}if(config.thumbSource===undefined){config.thumbSource=null}if(config.extent===undefined){config.extent=null}if(config.product===undefined){config.product=null}if(config.endDate===undefined){config.endDate=new Date();var timeString=SOTE.util.zeroPad(eval(config.endDate.getUTCMonth()+1),2)+"/"+SOTE.util.zeroPad(config.endDate.getUTCDate(),2)+"/"+config.endDate.getUTCFullYear();config.endDate=new Date(timeString);config.endDate.setHours(12);config.endDate.setMinutes(0);config.endDate.setSeconds(0)}else{config.endDate=new Date(config.endDate)}if(config.range===undefined){config.range=7*24*60*60*1000}if(config.selected===undefined){config.selected=new Date(config.endDate.getTime())}if(config.slideToSelect===undefined){config.slideToSelect=true}if(config.isCollapsed===undefined){config.isCollapsed=(config.thumbSource===null||config.hasThumbnail===false)?true:false}if(config.hasThumbnail===undefined){config.hasThumbnail=true}this.value="";this.maps=[];this.endDate=config.endDate;this.range=config.range;this.isCollapsed=config.isCollapsed;this.slideToSelect=config.slideToSelect;this.thumbSource=config.thumbSource;this.hasThumbnail=config.hasThumbnail;this.extent=config.extent;this.product=config.product;this.value=config.selected;this.dataSourceUrl=config.dataSourceUrl;this.statusStr="";this.init()};SOTE.widget.DateSpan.prototype=new SOTE.widget.Component;SOTE.widget.DateSpan.prototype.init=function(){this.container.setAttribute("class","datespan");var j=document.createElement("a");j.setAttribute("class","ecbutton collapse");this.container.appendChild(j);var c=document.createElement("div");c.setAttribute("class","spanContainer");c.setAttribute("id",this.id+"spanContainer");this.container.appendChild(c);var g=this.range/24/60/60/1000;var d=new Date(this.endDate.getTime()-this.range);for(var h=0;h<g;++h){var l=document.createElement("div");l.setAttribute("id","mapdiv"+h);l.setAttribute("class","dateitem");c.appendChild(l);var f=new Date(d.getTime()+(h+1)*24*60*60*1000);var a=SOTE.util.ISO8601StringFromDate(f);this.maps.push(new SOTE.widget.Map("mapdiv"+h,{baseLayer:"MODIS_Terra_CorrectedReflectance_TrueColor",time:a,hasControls:false}));$("#mapdiv"+h).bind("click",{self:this,time:f.clone()},SOTE.widget.DateSpan.snapToTime)}var b=document.createElement("div");b.setAttribute("id",this.id+"sliderDiv");b.innerHTML='<input type="range" name="slider" id="'+this.id+'slider" class="dateSpanSlider" value="100" min="0" max="100" step="1" />';c.appendChild(b);$("#"+this.id+"slider").slider();$("#"+this.id+"slider").bind("change",{self:this},SOTE.widget.DateSpan.handleSlide);$("#"+this.id+"slider").siblings(".ui-slider").bind("vmouseup",{self:this},SOTE.widget.DateSpan.snap);$(".ecbutton").bind("click",{self:this},SOTE.widget.DateSpan.toggle);this.isCollapsed=true;if(this.isCollapsed){this.isCollapsed=false;var k=new Object();k.data=new Object();k.data.self=this;SOTE.widget.DateSpan.toggle(k)}this.spanDate=document.getElementById(this.id+"spanContainerLabelDate");this.spanDay=document.getElementById(this.id+"spanContainerLabelDay");this.setVisualDate();if(REGISTRY){REGISTRY.register(this.id,this);REGISTRY.markComponentReady(this.id)}else{alert("No REGISTRY found! Cannot register AccordionPicker!")}};SOTE.widget.DateSpan.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from AccordionPicker!")}};SOTE.widget.DateSpan.handleSlide=function(g,d){var c=g.target.value;var b=g.data.self;var a=(b.range-(24*60*60*1000))*(100-c)/100;var f=new Date(b.endDate.getTime()-a);if(b.value.getTime()!==f.getTime()){b.value=f.clone();b.setVisualDate();b.fire()}};SOTE.widget.DateSpan.toggle=function(c,b){var a=c.data.self;if(a.isCollapsed){$(".ecbutton").removeClass("expand").addClass("collapse");$(".ecbutton").attr("title","Hide Date Thumbnails");$("a.ui-slider-handle").css("top","-142px");a.isCollapsed=false;a.showMaps();a.updateComponent(a.cachedQs)}else{$(".ecbutton").removeClass("collapse").addClass("expand");$(".ecbutton").attr("title","Show Date Thumbnails");$("a.ui-slider-handle").css("top","-25px");a.isCollapsed=true;a.hideMaps()}};SOTE.widget.DateSpan.snap=function(g,d){var b=g.data.self;var c=$("#"+b.id+"slider").val();var a=(b.range-(24*60*60*1000))*(100-c)/100;var f=new Date(b.endDate.getTime()-a);f.setHours(12);f.setMinutes(0);f.setSeconds(0);b.setValue(SOTE.util.ISO8601StringFromDate(f))};SOTE.widget.DateSpan.snapToTime=function(d,b){var a=d.data.self;var c=d.data.time;a.setValue(SOTE.util.ISO8601StringFromDate(c))};SOTE.widget.DateSpan.prototype.hideMaps=function(){for(var a=0;a<this.maps.length;++a){$("#"+this.maps[a].id).css("display","none")}};SOTE.widget.DateSpan.prototype.showMaps=function(){for(var a=0;a<this.maps.length;++a){$("#"+this.maps[a].id).css("display","block")}};SOTE.widget.DateSpan.prototype.setValue=function(b){var e=SOTE.util.UTCDateFromISO8601String(b);var a=this.endDate.getTime()-(this.range-24*60*60*1000);if(e.getTime()<=this.endDate.getTime()&&e.getTime()>=a){this.value=e.clone();var c=((this.endDate.getTime()-this.value.getTime())/(this.range-24*60*60*1000))*100;$("#"+this.id+"slider").val(100-c).slider("refresh");this.setVisualDate();this.fire()}else{SOTE.util.throwError("The date in your permalink has expired. As of right now, Worldview only retains the past 7 days of data. The date has been adjusted to today's date.")}};SOTE.widget.DateSpan.prototype.setVisualDate=function(){var dateString=this.value.getFullYear()+"-"+SOTE.util.zeroPad(eval(this.value.getMonth()+1),2)+"-"+SOTE.util.zeroPad(this.value.getDate(),2);$("a.ui-slider-handle").html("<span class='sliderText'>"+dateString+"</span>")};SOTE.widget.DateSpan.prototype.getValue=function(){return""+this.id+"="+SOTE.util.ISO8601StringFromDate(this.value)+"&transition=standard"};SOTE.widget.DateSpan.prototype.updateComponent=function(k){var n=SOTE.util.extractFromQuery("map",k);var l=SOTE.util.extractFromQuery("products",k);var m=l.split("~");var j=new Array();var d=m[0].split(".");var c=m[1].split(".");for(var h=1;h<d.length;++h){j.push(d[h])}for(var h=1;h<c.length;++h){j.push(c[h])}if(this.isCollapsed==false){var g=this.range/24/60/60/1000;var e=new Date(this.endDate.getTime()-this.range);for(var h=0;h<g;h++){var f=new Date(e.getTime()+(h+1)*24*60*60*1000);var b=SOTE.util.ISO8601StringFromDate(f);this.maps[h].updateComponent(k);this.maps[h].activateRelevantLayersDisableTheRest(j,b);this.maps[h].setValue(n)}}else{this.cachedQs=k}};SOTE.widget.DateSpan.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.DateSpan.prototype.validate=function(){};SOTE.widget.DateSpan.prototype.setDataSourceUrl=function(a){};SOTE.widget.DateSpan.prototype.getDataSourceUrl=function(){};SOTE.widget.DateSpan.prototype.setStatus=function(a){};SOTE.widget.DateSpan.prototype.getStatus=function(){};SOTE.widget.DateSpan.prototype.hide=function(){};SOTE.widget.DateSpan.prototype.show=function(){};SOTE.widget.DateSpan.prototype.expand=function(){};SOTE.widget.DateSpan.prototype.collapse=function(){};
\ No newline at end of file
+SOTE.namespace("SOTE.widget.DateSpan");SOTE.widget.DateSpan=function(containerId,config){this.SLIDER_WIDTH=1000;this.DAY_IN_MS=24*60*60*1000;this.sliders=new Object();this.sliders.Year=[2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012];this.sliders.Month=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];this.sliders.Day=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];this.months=[31,28,31,30,31,30,31,31,30,31,30,31];this.sliderContent=[];this.container=document.getElementById(containerId);if(this.container==null){this.setStatus("Error: element '"+containerId+"' not found!",true);return}this.id=containerId;this.containerId=containerId;if(config===undefined){config={}}if(config.dataSourceUrl===undefined){config.dataSourceUrl=null}if(config.thumbSource===undefined){config.thumbSource=null}if(config.extent===undefined){config.extent=null}if(config.product===undefined){config.product=null}if(config.endDate===undefined){config.endDate=new Date();var timeString=SOTE.util.zeroPad(eval(config.endDate.getUTCMonth()+1),2)+"/"+SOTE.util.zeroPad(config.endDate.getUTCDate(),2)+"/"+config.endDate.getUTCFullYear();config.endDate=new Date(timeString);config.endDate.setHours(12);config.endDate.setMinutes(0);config.endDate.setSeconds(0)}else{config.endDate=new Date(config.endDate)}if(config.startDate===undefined){config.startDate=new Date();var timeString="05/08/2012";config.startDate=new Date(timeString);config.startDate.setHours(12);config.startDate.setMinutes(0);config.startDate.setSeconds(0)}else{config.endDate=new Date(config.endDate)}if(config.range===undefined){config.range=7*this.DAY_IN_MS}if(config.selected===undefined){config.selected=new Date(config.endDate.getTime())}if(config.slideToSelect===undefined){config.slideToSelect=true}if(config.isCollapsed===undefined){config.isCollapsed=(config.thumbSource===null||config.hasThumbnail===false)?true:false}if(config.hasThumbnail===undefined){config.hasThumbnail=true}this.value="";this.maps=[];this.startDate=config.startDate;this.endDate=config.endDate;this.range=config.range;this.isCollapsed=config.isCollapsed;this.slideToSelect=config.slideToSelect;this.thumbSource=config.thumbSource;this.hasThumbnail=config.hasThumbnail;this.extent=config.extent;this.product=config.product;this.value=config.selected;this.dataSourceUrl=config.dataSourceUrl;this.statusStr="";this.init();$(window).bind("resize",{self:this},SOTE.widget.DateSpan.refreshSliders)};SOTE.widget.DateSpan.prototype=new SOTE.widget.Component;SOTE.widget.DateSpan.prototype.init=function(){this.container.setAttribute("class","datespan");var b=document.createElement("div");b.setAttribute("id",this.id+"dateHolder");b.setAttribute("class","dateHolder");b.innerHTML="Friday September 21, 2012";this.container.appendChild(b);var a=document.createElement("a");a.setAttribute("class","ecbutton collapse");a.setAttribute("id",this.id+"ecbutton");this.container.appendChild(a);this.createSlider("Year");this.createSlider("Month");this.createSlider("Day");this.setVisualDate();this.setValue(SOTE.util.ISO8601StringFromDate(this.value));$("#"+this.id+"ecbutton").bind("click",{self:this},SOTE.widget.DateSpan.toggle);if(REGISTRY){REGISTRY.register(this.id,this);REGISTRY.markComponentReady(this.id)}else{alert("No REGISTRY found! Cannot register AccordionPicker!")}};SOTE.widget.DateSpan.refreshSliders=function(b){var a=b.data.self;setTimeout(function(){a.refreshSlider("Year");a.refreshSlider("Month");a.refreshSlider("Day")},100)};SOTE.widget.DateSpan.prototype.refreshSlider=function(type){var labels=this.sliders[type];var wwidth=$(window).width();if(labels!=undefined){var width=50/labels.length;width=width.toFixed(1);var pwidth=width/100;var pwwidth=Math.floor(pwidth*wwidth);var spacer=50/labels.length;spacer=spacer.toFixed(1);var pspacer=spacer/100;var pwspacer=Math.floor(wwidth*pspacer/2);var finalwidth=(pwwidth+pwspacer+pwspacer);$("#"+this.id+"sliderLabel"+type).children().css("width",Math.floor(wwidth*pwidth)+"px");$("#"+this.id+"sliderLabel"+type).children().css("margin-left",Math.floor(wwidth*pspacer/2)+"px");$("#"+this.id+"sliderLabel"+type).children().css("margin-right",Math.floor(wwidth*pspacer/2)+"px");$("#"+this.id+"slider"+type).siblings(".ui-slider").css("width",eval(finalwidth*labels.length)+"px")}};SOTE.widget.DateSpan.prototype.createSlider=function(type){var slider=document.createElement("div");slider.setAttribute("id",this.id+"sliderDiv"+type);slider.setAttribute("class","sliderDiv"+type+" slider");slider.innerHTML='<input type="range" name="slider" id="'+this.id+"slider"+type+'" class="dateSpanSlider" value="'+this.SLIDER_WIDTH+'" min="0" max="'+this.SLIDER_WIDTH+'" step="1" />';this.container.appendChild(slider);var width=0;var wwidth=$(window).width();var labels=this.sliders[type];if(labels!=undefined){width=50/labels.length;width=width.toFixed(1);var pwidth=width/100;var pwwidth=Math.floor(pwidth*wwidth);var spacer=50/labels.length;spacer=spacer.toFixed(1);var pspacer=spacer/100;var pwspacer=Math.floor(wwidth*pspacer/2);var finalwidth=(pwwidth+pwspacer+pwspacer);var label=document.createElement("ul");label.setAttribute("class","sliderLabel");label.setAttribute("id",this.id+"sliderLabel"+type);for(var i=0;i<labels.length;++i){var item=document.createElement("li");item.setAttribute("id",this.id+type+"sliderItem"+i);item.innerHTML=labels[i];item.style.width=Math.floor(wwidth*pwidth)+"px";item.style.marginLeft=Math.floor(wwidth*pspacer/2)+"px";item.style.marginRight=Math.floor(wwidth*pspacer/2)+"px";label.appendChild(item)}this.container.appendChild(label)}var labelslength=labels.length;$("#"+this.id+"slider"+type).slider();$("#"+this.id+"slider"+type).bind("change",{self:this,type:type},SOTE.widget.DateSpan.handleSlide);$("#"+this.id+"slider"+type).siblings(".ui-slider").css("width",eval(finalwidth*labels.length)+"px");$("#"+this.id+"slider"+type).siblings(".ui-slider").bind("vmouseup",{self:this,type:type},SOTE.widget.DateSpan.snap);if(width!=0){$(".sliderDiv"+type+" a.ui-slider-handle").css("width",eval(width*1.1).toFixed(1)+"%")}};SOTE.widget.DateSpan.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from AccordionPicker!")}};SOTE.widget.DateSpan.handleSlide=function(h,g){var f=h.target.value;var d=h.data.type;var c=h.data.self;var i=c.sliders[d].length;var b=Math.floor(f*(i/c.SLIDER_WIDTH));if(c.sliders[d][b]){var a=c.value.clone();if(d=="Year"){a.setYear(c.sliders[d][b])}else{if(d=="Month"){if(c.value.getDate()>c.months[b]){a.setDate(c.months[b]);a.setMonth(b);c.setValue(SOTE.util.ISO8601StringFromDate(a))}else{a.setMonth(b)}}else{if(d=="Day"){if(c.sliders[d][b]<=c.months[c.value.getMonth()]){a.setDate(c.sliders[d][b])}else{a.setDate(c.months[c.value.getMonth()]);c.setValue(SOTE.util.ISO8601StringFromDate(a))}}}}if(a.getTime()<c.startDate.getTime()){c.setValue(SOTE.util.ISO8601StringFromDate(c.startDate))}else{if(a.getTime()>c.endDate.getTime()){c.setValue(SOTE.util.ISO8601StringFromDate(c.endDate))}else{c.value=a.clone()}}}else{if(b>=c.sliders[d].length){c.setValue(SOTE.util.ISO8601StringFromDate(c.value))}else{if(b<0){c.setValue(SOTE.util.ISO8601StringFromDate(c.value))}}}c.validate();c.setVisualDate();c.fire()};SOTE.widget.DateSpan.toggle=function(c,b){var a=c.data.self;if(a.isCollapsed){$(".ecbutton").removeClass("expand").addClass("collapse");$(".ecbutton").attr("title","Hide Date Sliders");a.isCollapsed=false;a.showSliders()}else{$(".ecbutton").removeClass("collapse").addClass("expand");$(".ecbutton").attr("title","Show Date Sliders");a.isCollapsed=true;a.hideSliders()}};SOTE.widget.DateSpan.snap=function(c,f){var k=c.data.self;var d=c.data.type;var j=k.sliders[d].length;var i=$("#"+k.id+"slider"+d).val();var g=Math.floor(i*(j/k.SLIDER_WIDTH));var a=k.SLIDER_WIDTH/j;var b=g*a+a/4-a*0.05;b=b.toFixed(1);$("#"+k.id+"slider"+d).val((b)).slider("refresh");if(k.sliders[d][g]){var h=k.value.clone();if(d=="Year"){h.setYear(k.sliders[d][g])}else{if(d=="Month"){if(k.value.getDate()>k.months[g]){h.setDate(k.months[g]);h.setMonth(g);k.setValue(SOTE.util.ISO8601StringFromDate(h))}else{h.setMonth(g)}}else{if(d=="Day"){if(k.sliders[d][g]<=k.months[k.value.getMonth()]){h.setDate(k.sliders[d][g])}else{h.setDate(k.months[k.value.getMonth()]);k.setValue(SOTE.util.ISO8601StringFromDate(h))}}}}if(h.getTime()<k.startDate.getTime()){k.setValue(SOTE.util.ISO8601StringFromDate(k.startDate))}else{if(h.getTime()>k.endDate.getTime()){k.setValue(SOTE.util.ISO8601StringFromDate(k.endDate))}else{k.value=h.clone()}}}else{if(g>=k.sliders[d].length){k.setValue(SOTE.util.ISO8601StringFromDate(k.value))}else{if(g<0){k.setValue(SOTE.util.ISO8601StringFromDate(k.value))}}}k.validate();k.setVisualDate()};SOTE.widget.DateSpan.snapToTime=function(d,b){var a=d.data.self;var c=d.data.time};SOTE.widget.DateSpan.prototype.hideSliders=function(){for(var a in this.sliders){$("#"+this.id+"sliderDiv"+a).css("display","none")}};SOTE.widget.DateSpan.prototype.showSliders=function(){for(var a in this.sliders){$("#"+this.id+"sliderDiv"+a).css("display","block")}};SOTE.widget.DateSpan.prototype.setValue=function(j){var h=SOTE.util.getValuesFromISO8601String(j);if(h[2]>this.months[h[1]]){h[2]=this.months[h[1]]}var f=new Date(h[0],h[1],h[2],h[3],h[4],h[5]);var b=this.endDate.getTime()-(this.range-24*60*60*1000);var e=["January","February","March","April","May","June","July","August","September","October","November","December"];if(f.getTime()<=this.endDate.getTime()&&f.getTime()>=this.startDate.getTime()){this.value=f;var k=new Object();k.Year=this.sliders.Year.indexOf(this.value.getFullYear());k.Month=this.value.getMonth();k.Day=this.sliders.Day.indexOf(this.value.getDate());for(var g in k){var l=this.sliders[g].length;var i=k[g];var a=this.SLIDER_WIDTH/l;var c=i*a+(a/4)-(a*0.05);c=c.toFixed(1);$("#"+this.id+"slider"+g).val(c).slider("refresh")}this.validate();this.setVisualDate();this.fire()}else{SOTE.util.throwError("The date "+j+" in your permalink has expired. As of right now, Worldview only retains data as of "+SOTE.util.ISO8601StringFromDate(this.startDate)+". The date has been adjusted to today's date.")}};SOTE.widget.DateSpan.prototype.setVisualDate=function(){var dateString=this.value.getFullYear()+"-"+SOTE.util.zeroPad(eval(this.value.getMonth()+1),2)+"-"+SOTE.util.zeroPad(this.value.getDate(),2);$("#"+this.id+"dateHolder").html(dateString)};SOTE.widget.DateSpan.prototype.getValue=function(){return""+this.id+"="+SOTE.util.ISO8601StringFromDate(this.value)+"&transition=standard"};SOTE.widget.DateSpan.prototype.updateComponent=function(a){};SOTE.widget.DateSpan.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.DateSpan.prototype.validate=function(){var k=this.value.clone();var f=this.startDate.getFullYear();var h=this.startDate.getMonth();var e=this.startDate.getDate();var j=this.endDate.getFullYear();var d=this.endDate.getMonth();var b=this.endDate.getDate();for(var g in this.sliders){for(var c=0;c<this.sliders[g].length;++c){var a=this.id+g+"sliderItem"+c;if(g=="Year"){if(this.sliders[g][c]<f||this.sliders[g][c]>j){$("#"+a).addClass("disabledItem")}else{$("#"+a).removeClass("disabledItem")}}if(g=="Month"){if((k.getFullYear()==f&&c<h)||(k.getFullYear()==j&&c>d)){$("#"+a).addClass("disabledItem")}else{$("#"+a).removeClass("disabledItem")}}if(g=="Day"){if((this.sliders[g][c]>this.months[k.getMonth()])||(k.getFullYear()==f&&k.getMonth()==h&&this.sliders[g][c]<e)||(k.getFullYear()==j&&k.getMonth()==d&&this.sliders[g][c]>b)){$("#"+a).addClass("disabledItem")}else{$("#"+a).removeClass("disabledItem")}}}}};SOTE.widget.DateSpan.prototype.setDataSourceUrl=function(a){};SOTE.widget.DateSpan.prototype.getDataSourceUrl=function(){};SOTE.widget.DateSpan.prototype.setStatus=function(a){};SOTE.widget.DateSpan.prototype.getStatus=function(){};SOTE.widget.DateSpan.prototype.hide=function(){};SOTE.widget.DateSpan.prototype.show=function(){};SOTE.widget.DateSpan.prototype.expand=function(){};SOTE.widget.DateSpan.prototype.collapse=function(){};
\ No newline at end of file
diff --git a/js/map-min.js b/js/map-min.js
index 9ec3be274..fc4d18ec5 100644
--- a/js/map-min.js
+++ b/js/map-min.js
@@ -1 +1 @@
-SOTE.namespace("SOTE.widget.Map");SOTE.widget.Map.prototype=new SOTE.widget.Component;SOTE.widget.Map=function(containerId,config){this.container=document.getElementById(containerId);if(this.container==null){this.setStatus("Error: element '"+containerId+"' not found!",true);return}this.containerId=containerId;this.id=containerId;this.DEFAULT_OVERLAY_OPACITY=0.95;this.NUM_DAYS_TO_GENERATE=8;this.RESOLUTIONS_ON_SCREEN_GEO_ALL=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125,0.002197265625];this.RESOLUTIONS_ON_SCREEN_POLAR_ALL=[8192,4096,2048,1024,512,256];this.RESOLUTIONS_ON_SERVER_GEO_250m=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125,0.002197265625];this.RESOLUTIONS_ON_SERVER_POLAR_250m=[8192,4096,2048,1024,512,256];this.TILEMATRIXSET_GEO_250m="EPSG4326_250m";this.RESOLUTIONS_ON_SERVER_GEO_500m=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125];this.RESOLUTIONS_ON_SERVER_POLAR_500m=[8192,4096,2048,1024,512];this.TILEMATRIXSET_GEO_500m="EPSG4326_500m";this.RESOLUTIONS_ON_SERVER_GEO_1km=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625];this.RESOLUTIONS_ON_SERVER_POLAR_1km=[8192,4096,2048,1024];this.TILEMATRIXSET_GEO_1km="EPSG4326_1km";this.RESOLUTIONS_ON_SERVER_GEO_2km=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125];this.RESOLUTIONS_ON_SERVER_POLAR_2km=[8192,4096,2048];this.TILEMATRIXSET_GEO_2km="EPSG4326_2km";if(config===undefined){config={}}if(config.hasControls===undefined){config.hasControls=true}if(config.isSelectable===undefined){config.isSelectable=false}if(config.bbox===undefined){var curHour=new Date().getUTCHours();if(curHour<9){curHour=0}var minLon=20.6015625+curHour*(-200.53125/23);var maxLon=minLon+159.328125;config.bbox=minLon.toString()+",-46.546875,"+maxLon.toString()+",53.015625"}if(config.dataSourceUrl===undefined){config.dataSourceUrl=null}if(config.maxWidth===undefined){config.maxWidth=null}if(config.maxHeight===undefined){config.maxHeight=null}if(config.layers===undefined){config.layers=null}if(config.time===undefined){config.time=new Date();config.time=config.time.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(config.time.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(config.time.getUTCDate(),2)+"T"+SOTE.util.zeroPad(config.time.getUTCHours(),2)+":"+SOTE.util.zeroPad(config.time.getUTCMinutes(),2)+":"+SOTE.util.zeroPad(config.time.getUTCSeconds(),2)}if(config.baselayer===undefined){config.baselayer=null}this.hasControls=config.hasControls;this.isSelectable=config.isSelectable;this.bbox=config.bbox;this.value="";this.register=config.register;this.maxWidth=config.maxWidth;this.maxHeight=config.maxHeight;this.dataSourceUrl=config.dataSourceUrl;this.statusStr="";this.disabled=false;this.time=config.time;this.baseLayer=config.baseLayer;this.graticule=null;this.projection="EPSG:4326";this.init();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register Map!")}this.isSoteMapDataCached=false;this.updateComponent("");if((this.time!=null)&&(this.baseLayer!=null)){this.activateRelevantLayersDisableTheRest([this.baseLayer],this.time)}this.setExtent(this.bbox);if(REGISTRY){REGISTRY.markComponentReady(this.id)}};SOTE.widget.Map.prototype.handleMapMoveEnd=function(b){var a=b.object.getExtent().transform(b.object.getProjectionObject(),new OpenLayers.Projection(this.projection)).toString();this.setValue(a);this.fire()};SOTE.widget.Map.prototype.activateRelevantLayersDisableTheRest=function(activeProductNames,time){var allLayers=this.getAllLayers();var nLayers=allLayers.length;var myDate=SOTE.util.UTCDateFromISO8601String(time);time=myDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(myDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(myDate.getUTCDate(),2);for(var i=0;i<nLayers;i++){var isLayerFound=false;for(var j=0;j<activeProductNames.length;j++){if((allLayers[i].name==new String(activeProductNames[j]+"__"+time))||(allLayers[i].name==new String(activeProductNames[j]))){allLayers[i].setVisibility(true);isLayerFound=true;if(j==0){this.map.setLayerZIndex(allLayers[i],0);allLayers[i].setOpacity(1)}else{if(this.checkWmsParam(allLayers[i].metadata.preferredOpacity)){allLayers[i].setOpacity(allLayers[i].metadata.preferredOpacity)}else{allLayers[i].setOpacity(this.DEFAULT_OVERLAY_OPACITY)}if(activeProductNames.length>2){this.map.setLayerZIndex(allLayers[i],nLayers-j)}}}}if(!isLayerFound){allLayers[i].setVisibility(false)}}};SOTE.widget.Map.prototype.init=function(){this.container.innerHTML="";var e=function(){window.scrollTo(0,0);document.body.style.height="100%";if(!(/(iphone|ipod)/.test(navigator.userAgent.toLowerCase()))){if(document.body.parentNode){document.body.parentNode.style.height="100%"}}};setTimeout(e,700);setTimeout(e,1500);var a=document.createElement("div");a.setAttribute("id",this.id+"map");this.container.appendChild(a);if(this.projection=="EPSG:4326"){this.map=new OpenLayers.Map({div:this.containerId,theme:null,controls:[],maxExtent:new OpenLayers.Bounds(-180,-1350,180,90),projection:this.projection,numZoomLevels:9,fractionalZoom:false,resolutions:this.RESOLUTIONS_ON_SCREEN_GEO_ALL,allOverlays:true,zoom:2})}else{this.map=new OpenLayers.Map({div:this.containerId,theme:null,controls:[],maxExtent:new OpenLayers.Bounds(-4194304,-4194304,4194304,4194304),projection:this.projection,resolutions:this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,allOverlays:true,zoom:2,units:"m",numZoomLevels:6,})}if(this.hasControls){var i=new OpenLayers.Control.ZoomIn();i.title="zoom in";i.displayClass="olControlZoomInCustom";i.id="zoomInCustomId";var c=new OpenLayers.Control.ZoomOut();c.title="zoom out";c.displayClass="olControlZoomOutCustom";c.id="zoomOutCustomId";var d=new OpenLayers.Control.Panel();d.displayClass="olControlZoomPanelCustom";d.addControls(i);d.addControls(c);this.map.addControl(d);this.map.addControl(new OpenLayers.Control.Navigation({dragPanOptions:{enableKinetic:true}}));this.map.addControl(new OpenLayers.Control.Attribution());this.map.addControl(new OpenLayers.Control.ScaleLine({displayClass:"olControlScaleLineCustom"}));var g=new OpenLayers.Symbolizer.Line({strokeColor:"#000000",strokeOpacity:0.55,strokeWidth:1.35,strokeLinecap:"square",strokeDashstyle:"dot"});var h=new OpenLayers.Symbolizer.Text({fontFamily:"Gill Sans",fontSize:"16",fontWeight:"550",fontColor:"#e10000",fontOpacity:1});this.graticule=new OpenLayers.Control.Graticule({layerName:"ol_graticule",numPoints:2,labelled:true,lineSymbolizer:g,labelSymbolizer:h});this.map.addControl(this.graticule);var b=this.map.getControlsByClass("OpenLayers.Control.Navigation")[0];b.handlers.wheel.interval=60;b.handlers.wheel.cumulative=false}if(this.isSelectable){this.map.addControl(new OpenLayers.Control.ZoomBox())}if(this.projection=="EPSG:4326"){var f=new OpenLayers.Bounds.fromString("-180, -100, 180, 100",false).transform(new OpenLayers.Projection(this.projection),this.map.getProjectionObject());this.map.restrictedExtent=f}else{this.map.restrictedExtent=new OpenLayers.Bounds.fromString("-5000000,-3500000,5000000,3500000")}if(this.isSoteMapDataCached&&(this.time!=null)&&(this.baseLayer!=null)&&(this.map.layers.length>0)){this.activateRelevantLayersDisableTheRest([this.baseLayer],this.time)}if(this.isSoteMapDataCached){if(this.projection=="EPSG:4326"){this.setExtent("-146.390625,-93.921875,146.390625,93.953125",true);this.fire()}else{this.setExtent("-4194304,-4194304,4194304,4194304",true);this.fire()}}this.map.events.register("moveend",this,this.handleMapMoveEnd)};SOTE.widget.Map.prototype.checkWmsParam=function(a){if((a===undefined)||(a==null)||(a=="")){return false}return true};SOTE.widget.Map.prototype.addLayers=function(c){for(var b=0;b<c.length;b++){if(!this.checkWmsParam(c[b].displayName)){c[b].displayName="unnamed"}if(!this.checkWmsParam(c[b].time)){c[b].time=""}if(!this.checkWmsParam(c[b].format)){c[b].format="image/jpeg"}if(!this.checkWmsParam(c[b].transparent)){c[b].transparent=true}if(!this.checkWmsParam(c[b].projection)){c[b].projection=this.projection}if(!this.checkWmsParam(c[b].numZoomLevels)){c[b].numZoomLevels=(this.projection=="EPSG:4326")?9:6}if(!this.checkWmsParam(c[b].maxExtent)){c[b].maxExtent=(this.projection=="EPSG:4326")?[-180,-1350,180,90]:[-4194304,-4194304,4194304,4194304]}if(!this.checkWmsParam(c[b].maxResolution)){c[b].maxResolution=(this.projection=="EPSG:4326")?0.5625:8192}if(!this.checkWmsParam(c[b].preferredOpacity)){c[b].preferredOpacity=this.DEFAULT_OVERLAY_OPACITY}if(!this.checkWmsParam(c[b].bringToFront)){c[b].bringToFront=false}if(!this.checkWmsParam(c[b].transitionEffect)){c[b].transitionEffect="resize"}if(!this.checkWmsParam(c[b].resolutions)){if(c[b].projection=="EPSG:4326"){c[b].resolutions=this.RESOLUTIONS_ON_SCREEN_GEO_ALL}else{c[b].resolutions=this.RESOLUTIONS_ON_SCREEN_POLAR_ALL}}if(!this.checkWmsParam(c[b].serverResolutions)){if(c[b].projection=="EPSG:4326"){c[b].serverResolutions=this.RESOLUTIONS_ON_SERVER_GEO_250m}else{c[b].serverResolutions=this.RESOLUTIONS_ON_SERVER_POLAR_250m}}if(!this.checkWmsParam(c[b].tileMatrixSet)){if(c[b].projection=="EPSG:4326"){c[b].tileMatrixSet=this.TILEMATRIXSET_GEO_250m}else{c[b].tileMatrixSet=this.TILEMATRIXSET_POLAR_250m}}if(!this.checkWmsParam(c[b].urls)){alert("invalid / no URL passed in for layer "+c[b].displayName);continue}if(!this.checkWmsParam(c[b].wmsProductName)){alert("invalid / unspecified WMS 'layer' parameter");continue}if(!this.checkWmsParam(c[b].tileSize)){wmsLayer=new OpenLayers.Layer.WMS(c[b].displayName,c[b].urls,{layers:c[b].wmsProductName,format:c[b].format,transparent:c[b].transparent,},{isBaseLayer:false,visibility:false,transitioneffect:c[b].transitionEffect,projection:c[b].projection,tileSize:new OpenLayers.Size(512,512),metadata:{preferredOpacity:c[b].preferredOpacity,bringToFront:c[b].bringToFront}});if(this.checkWmsParam(c[b].time)){wmsLayer.mergeNewParams({time:c[b].time})}this.map.addLayer(wmsLayer)}else{if(this.projection!="EPSG:4326"){this.map.addLayer(new OpenLayers.Layer.WMS(c[b].displayName,c[b].urls,{time:c[b].time,layers:c[b].wmsProductName,Format:c[b].format},{tileSize:new OpenLayers.Size(c[b].tileSize[0],c[b].tileSize[1]),buffer:0,transitionEffect:c[b].transitionEffect,projection:c[b].projection,numZoomLevels:c[b].numZoomLevels,maxExtent:new OpenLayers.Bounds(c[b].maxExtent[0],c[b].maxExtent[1],c[b].maxExtent[2],c[b].maxExtent[3]),maxResolution:c[b].maxResolution,resolutions:c[b].resolutions,serverResolutions:c[b].serverResolutions,visibility:false,metadata:{preferredOpacity:c[b].preferredOpacity,bringToFront:c[b].bringToFront}}))}else{var a=new OpenLayers.Layer.WMTS({name:c[b].displayName,url:c[b].urls,layer:c[b].wmsProductName,matrixSet:c[b].tileMatrixSet,format:c[b].format,buffer:0,style:"",opacity:c[b].preferredOpacity,transitionEffect:c[b].transitionEffect,projection:c[b].projection,numZoomLevels:c[b].numZoomLevels,maxResolution:c[b].maxResolution,resolutions:c[b].resolutions,serverResolutions:c[b].serverResolutions,visibility:false,metadata:{preferredOpacity:c[b].preferredOpacity,bringToFront:c[b].bringToFront},tileSize:new OpenLayers.Size(c[b].tileSize[0],c[b].tileSize[1]),maxExtent:new OpenLayers.Bounds(c[b].maxExtent[0],c[b].maxExtent[1],c[b].maxExtent[2],c[b].maxExtent[3]),isBaseLayer:false});a.mergeNewParams({time:c[b].time});this.map.addLayer(a)}}}if(this.graticule!=null){this.map.setLayerZIndex(this.graticule.gratLayer,this.getAllLayers().length-1)}};SOTE.widget.Map.prototype.setValue=function(a){return this.setExtent(a)};SOTE.widget.Map.prototype.getValue=function(){return this.id+"="+this.value};SOTE.widget.Map.prototype.getAllLayers=function(){return this.map.layers};SOTE.widget.Map.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.Map.prototype.validate=function(){var b=this.map.getExtent();if(b==null){this.setStatus("Could not retrieve current extent");return false}var a=b.transform(this.map.getProjectionObject(),new OpenLayers.Projection(this.projection)).toString();if((a.left<-180)||(a.right>180)||(a.top>90)||(a.bottom<-90)){this.setStatus("Current extent is out of bounds");return false}return true};SOTE.widget.Map.prototype.setDataSourceUrl=function(a){};SOTE.widget.Map.prototype.getDataSourceUrl=function(){};SOTE.widget.Map.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Map.prototype.getStatus=function(){return this.statusStr};SOTE.widget.Map.prototype.setExtent=function(b,c){var a=new OpenLayers.Bounds.fromString(b,false).transform(new OpenLayers.Projection(this.projection),this.map.getProjectionObject());if(a==null){this.setStatus("Could not set extent");return false}if(b==this.value&&!c){return}this.value=b;this.map.zoomToExtent(a,true);return true};SOTE.widget.Map.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Map!")}};SOTE.widget.Map.prototype.updateComponent=function(a){var c=(SOTE.util.extractFromQuery("switch",a))?SOTE.util.extractFromQuery("switch",a):"geographic";if(!this.isSoteMapDataCached||c!=this.state){this.isSoteMapDataCached=false;this.state=c;if(this.state=="geographic"){this.projection="EPSG:4326"}else{if(this.state=="antarctic"){this.projection="EPSG:3031"}else{if(this.state=="arctic"){this.projection="EPSG:3995"}}}if(this.state=="geographic"){var b=[{displayName:"MODIS_Land_Water_Mask",wmsProductName:"MODIS_Land_Water_Mask",time:"",format:"image/png",urls:["http://map1.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],tileSize:[512,512],projection:"EPSG:4326",numZoomLevels:9,maxExtent:[-180,-1350,180,90],maxResolution:0.5625,preferredOpacity:0.75,bringToFront:true},{displayName:"grump-v1-population-count_2000",wmsProductName:"grump-v1-population-count_2000",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.55},{displayName:"ndh-cyclone-hazard-frequency-distribution",wmsProductName:"ndh-cyclone-hazard-frequency-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-cyclone-proportional-economic-loss-risk-deciles",wmsProductName:"ndh-cyclone-proportional-economic-loss-risk-deciles",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-cyclone-mortality-risks-distribution",wmsProductName:"ndh-cyclone-mortality-risks-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-flood-hazard-frequency-distribution",wmsProductName:"ndh-flood-hazard-frequency-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-flood-proportional-economic-loss-risk-deciles",wmsProductName:"ndh-flood-proportional-economic-loss-risk-deciles",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-flood-mortality-risks-distribution",wmsProductName:"ndh-flood-mortality-risks-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-drought-hazard-frequency-distribution",wmsProductName:"ndh-drought-hazard-frequency-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-drought-proportional-economic-loss-risk-deciles",wmsProductName:"ndh-drought-proportional-economic-loss-risk-deciles",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-drought-mortality-risks-distribution",wmsProductName:"ndh-drought-mortality-risks-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-volcano-hazard-frequency-distribution",wmsProductName:"ndh-volcano-hazard-frequency-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-volcano-proportional-economic-loss-risk-deciles",wmsProductName:"ndh-volcano-proportional-economic-loss-risk-deciles",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"ndh-volcano-mortality-risks-distribution",wmsProductName:"ndh-volcano-mortality-risks-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75},{displayName:"cartographic:esri-administrative-boundaries_level-1",wmsProductName:"cartographic:esri-administrative-boundaries_level-1",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],layers:"cartographic:esri-administrative-boundaries_level-1",transparent:true,projection:"EPSG:4326",preferredOpacity:0.55,bringToFront:true},{displayName:"sedac_bound",wmsProductName:"sedac_bound",time:"",format:"image/png",urls:["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],tileSize:[512,512],projection:"EPSG:4326",numZoomLevels:9,maxExtent:[-180,-1350,180,90],maxResolution:0.5625,preferredOpacity:0.75,bringToFront:true,transitionEffect:"none"},{displayName:"gpw-v3-coastlines",wmsProductName:"gpw-v3-coastlines",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],layers:"gpw-v3-coastlines",transparent:true,projection:"EPSG:4326",preferredOpacity:0.85,bringToFront:true},{displayName:"cartographic:00-global-labels",wmsProductName:"cartographic:00-global-labels",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],layers:"cartographic:00-global-labels",transparent:true,projection:"EPSG:4326",preferredOpacity:0.95,bringToFront:true}];this.soteMapData=b.concat(SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_CorrectedReflectance_TrueColor","MODIS_Terra_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_SurfaceReflectance_Bands143","MODIS_Terra_SurfaceReflectance_Bands143","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_CorrectedReflectance_TrueColor","MODIS_Aqua_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_SurfaceReflectance_Bands143","MODIS_Aqua_SurfaceReflectance_Bands143","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_CorrectedReflectance_Bands721","MODIS_Terra_CorrectedReflectance_Bands721","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_CorrectedReflectance_Bands721","MODIS_Aqua_CorrectedReflectance_Bands721","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_SurfaceReflectance_Bands721","MODIS_Terra_SurfaceReflectance_Bands721","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_SurfaceReflectance_Bands721","MODIS_Aqua_SurfaceReflectance_Bands721","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_CorrectedReflectance_Bands367","MODIS_Terra_CorrectedReflectance_Bands367","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_SurfaceReflectance_Bands121","MODIS_Terra_SurfaceReflectance_Bands121","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_SurfaceReflectance_Bands121","MODIS_Aqua_SurfaceReflectance_Bands121","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Snow_Cover","MODIS_Terra_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Snow_Cover","MODIS_Aqua_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Sea_Ice","MODIS_Terra_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Sea_Ice","MODIS_Aqua_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Land_Surface_Temp_Day","MODIS_Terra_Land_Surface_Temp_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Land_Surface_Temp_Day","MODIS_Aqua_Land_Surface_Temp_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Land_Surface_Temp_Night","MODIS_Terra_Land_Surface_Temp_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Land_Surface_Temp_Night","MODIS_Aqua_Land_Surface_Temp_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Brightness_Temp_Band31_Day","MODIS_Terra_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Brightness_Temp_Band31_Day","MODIS_Aqua_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Brightness_Temp_Band31_Night","MODIS_Terra_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Brightness_Temp_Band31_Night","MODIS_Aqua_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Aerosol","MODIS_Terra_Aerosol","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Aerosol","MODIS_Aqua_Aerosol","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Water_Vapor_5km_Day","MODIS_Terra_Water_Vapor_5km_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Water_Vapor_5km_Day","MODIS_Aqua_Water_Vapor_5km_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Water_Vapor_5km_Night","MODIS_Terra_Water_Vapor_5km_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Water_Vapor_5km_Night","MODIS_Aqua_Water_Vapor_5km_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Cloud_Top_Pressure_Day","MODIS_Terra_Cloud_Top_Pressure_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Cloud_Top_Pressure_Day","MODIS_Aqua_Cloud_Top_Pressure_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Cloud_Top_Pressure_Night","MODIS_Terra_Cloud_Top_Pressure_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Cloud_Top_Pressure_Night","MODIS_Aqua_Cloud_Top_Pressure_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Cloud_Top_Temp_Day","MODIS_Terra_Cloud_Top_Temp_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Cloud_Top_Temp_Day","MODIS_Aqua_Cloud_Top_Temp_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Terra_Cloud_Top_Temp_Night","MODIS_Terra_Cloud_Top_Temp_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("MODIS_Aqua_Cloud_Top_Temp_Night","MODIS_Aqua_Cloud_Top_Temp_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("AIRS_Dust_Score","AIRS_Dust_Score","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("AIRS_CO_Total_Column_Day","AIRS_CO_Total_Column_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("AIRS_CO_Total_Column_Night","AIRS_CO_Total_Column_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("AIRS_Prata_SO2_Index_Day","AIRS_Prata_SO2_Index_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("AIRS_Prata_SO2_Index_Night","AIRS_Prata_SO2_Index_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("AIRS_Precipitation_Day","AIRS_Precipitation_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("AIRS_Precipitation_Night","AIRS_Precipitation_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("OMI_Cloud_Pressure","OMI_Cloud_Pressure","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("OMI_Aerosol_Index","OMI_Aerosol_Index","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("OMI_Aerosol_Optical_Depth","OMI_Aerosol_Optical_Depth","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("OMI_Absorbing_Aerosol_Optical_Depth","OMI_Absorbing_Aerosol_Optical_Depth","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("OMI_SO2_Lower_Troposphere","OMI_SO2_Lower_Troposphere","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("OMI_SO2_Middle_Troposphere","OMI_SO2_Middle_Troposphere","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("OMI_SO2_Upper_Troposphere_and_Stratosphere","OMI_SO2_Upper_Troposphere_and_Stratosphere","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS("OMI_SO2_Planetary_Boundary_Layer","OMI_SO2_Planetary_Boundary_Layer","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateWmsProductLayersForDateRange("MODIS_Fires_All","MODIS_Fires_All","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange("MODIS_Fires_Terra","MODIS_Fires_Terra","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange("MODIS_Fires_Aqua","MODIS_Fires_Aqua","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange("Terra_Orbit_Asc","Terra_Orbit_Asc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange("Terra_Orbit_Dsc","Terra_Orbit_Dsc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange("Aqua_Orbit_Asc","Aqua_Orbit_Asc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange("Aqua_Orbit_Dsc","Aqua_Orbit_Dsc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange("Aura_Orbit_Asc","Aura_Orbit_Asc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange("Aura_Orbit_Dsc","Aura_Orbit_Dsc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE))}else{if(this.state=="antarctic"){var b=[{displayName:"grump-v1-population-count_2000",wmsProductName:"grump-v1-population-count_2000",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],projection:"EPSG:3031",preferredOpacity:0.75,bringToFront:true},{displayName:"polarview:graticule3031_10x30",wmsProductName:"polarview:graticule3031_10x30",time:"",urls:["http://geos.polarview.aq/geoserver/wms?"],layers:"polarview:graticule3031_10x30",transparent:true,projection:"EPSG:3031",preferredOpacity:0.75,bringToFront:true},{displayName:"cartographic:national-boundaries",wmsProductName:"cartographic:national-boundaries",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],layers:"cartographic:national-boundaries",transparent:true,projection:"EPSG:3031",preferredOpacity:0.55,bringToFront:true},{displayName:"polarview:coastS10",wmsProductName:"polarview:coastS10",time:"",urls:["http://geos.polarview.aq/geoserver/wms?"],layers:"polarview:coastS10",transparent:true,projection:"EPSG:3031",preferredOpacity:0.85,bringToFront:true}];this.soteMapData=b.concat(SOTE.util.generateProductLayersForDateRange("MODIS_Terra_CorrectedReflectance_TrueColor","MODIS_Terra_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_CorrectedReflectance_TrueColor","MODIS_Aqua_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_CorrectedReflectance_Bands367","MODIS_Terra_CorrectedReflectance_Bands367","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_Brightness_Temp_Band31_Day","MODIS_Terra_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_Brightness_Temp_Band31_Night","MODIS_Terra_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_Brightness_Temp_Band31_Day","MODIS_Aqua_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_Brightness_Temp_Band31_Night","MODIS_Aqua_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_Snow_Cover","MODIS_Terra_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_500m),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_Snow_Cover","MODIS_Aqua_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_500m),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_Sea_Ice","MODIS_Terra_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_Sea_Ice","MODIS_Aqua_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km))}else{if(this.state=="arctic"){var b=[{displayName:"grump-v1-population-count_2000",wmsProductName:"grump-v1-population-count_2000",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],projection:"EPSG:3995",preferredOpacity:0.75,bringToFront:true},{displayName:"polarview:graticuleN",wmsProductName:"polarview:graticuleN",time:"",urls:["http://geos.polarview.aq/geoserver/wms?"],layers:"polarview:graticuleN",transparent:true,projection:"EPSG:3995",preferredOpacity:0.75,bringToFront:true},{displayName:"cartographic:national-boundaries",wmsProductName:"cartographic:national-boundaries",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],layers:"cartographic:national-boundaries",transparent:true,projection:"EPSG:3995",preferredOpacity:0.55,bringToFront:true},{displayName:"polarview:coastArctic10",wmsProductName:"polarview:coastArctic10",time:"",urls:["http://geos.polarview.aq/geoserver/wms?"],layers:"polarview:coastArctic10",transparent:true,projection:"EPSG:3995",preferredOpacity:0.85,bringToFront:true},{displayName:"cartographic:00-global-labels",wmsProductName:"cartographic:00-global-labels",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],layers:"cartographic:00-global-labels",transparent:true,projection:"EPSG:3995",preferredOpacity:0.95,bringToFront:true}];this.soteMapData=b.concat(SOTE.util.generateProductLayersForDateRange("MODIS_Terra_CorrectedReflectance_TrueColor","MODIS_Terra_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_CorrectedReflectance_TrueColor","MODIS_Aqua_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_CorrectedReflectance_Bands367","MODIS_Terra_CorrectedReflectance_Bands367","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_Brightness_Temp_Band31_Day","MODIS_Terra_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_Brightness_Temp_Band31_Night","MODIS_Terra_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_Brightness_Temp_Band31_Day","MODIS_Aqua_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_Brightness_Temp_Band31_Night","MODIS_Aqua_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_Snow_Cover","MODIS_Terra_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_500m),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_Snow_Cover","MODIS_Aqua_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_500m),SOTE.util.generateProductLayersForDateRange("MODIS_Terra_Sea_Ice","MODIS_Terra_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange("MODIS_Aqua_Sea_Ice","MODIS_Aqua_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km))}}}this.init();this.addLayers(this.soteMapData);this.isSoteMapDataCached=true}};
\ No newline at end of file
+SOTE.namespace("SOTE.widget.Map");SOTE.widget.Map.prototype=new SOTE.widget.Component;SOTE.widget.Map=function(containerId,config){this.container=document.getElementById(containerId);if(this.container==null){this.setStatus("Error: element '"+containerId+"' not found!",true);return}this.containerId=containerId;this.id=containerId;this.DEFAULT_OVERLAY_OPACITY=0.95;var currentDate=new Date();var gibsStartDate=new Date(2012,4,7,0,0,0,0);var numDaysToGenerate=(currentDate.getTime()-gibsStartDate.getTime())/(24*60*60*1000)+1;this.NUM_DAYS_TO_GENERATE=Math.round(numDaysToGenerate);this.RESOLUTIONS_ON_SCREEN_GEO_ALL=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125,0.002197265625];this.RESOLUTIONS_ON_SCREEN_POLAR_ALL=[8192,4096,2048,1024,512,256];this.RESOLUTIONS_ON_SERVER_GEO_250m=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125,0.002197265625];this.RESOLUTIONS_ON_SERVER_POLAR_250m=[8192,4096,2048,1024,512,256];this.TILEMATRIXSET_GEO_250m="EPSG4326_250m";this.RESOLUTIONS_ON_SERVER_GEO_500m=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125];this.RESOLUTIONS_ON_SERVER_POLAR_500m=[8192,4096,2048,1024,512];this.TILEMATRIXSET_GEO_500m="EPSG4326_500m";this.RESOLUTIONS_ON_SERVER_GEO_1km=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625];this.RESOLUTIONS_ON_SERVER_POLAR_1km=[8192,4096,2048,1024];this.TILEMATRIXSET_GEO_1km="EPSG4326_1km";this.RESOLUTIONS_ON_SERVER_GEO_2km=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125];this.RESOLUTIONS_ON_SERVER_POLAR_2km=[8192,4096,2048];this.TILEMATRIXSET_GEO_2km="EPSG4326_2km";if(config===undefined){config={}}if(config.hasControls===undefined){config.hasControls=true}if(config.isSelectable===undefined){config.isSelectable=false}if(config.bbox===undefined){var curHour=new Date().getUTCHours();if(curHour<9){curHour=0}var minLon=20.6015625+curHour*(-200.53125/23);var maxLon=minLon+159.328125;config.bbox=minLon.toString()+",-46.546875,"+maxLon.toString()+",53.015625"}if(config.dataSourceUrl===undefined){config.dataSourceUrl=null}if(config.maxWidth===undefined){config.maxWidth=null}if(config.maxHeight===undefined){config.maxHeight=null}if(config.layers===undefined){config.layers=null}if(config.time===undefined){config.time=new Date();config.time=config.time.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(config.time.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(config.time.getUTCDate(),2)+"T"+SOTE.util.zeroPad(config.time.getUTCHours(),2)+":"+SOTE.util.zeroPad(config.time.getUTCMinutes(),2)+":"+SOTE.util.zeroPad(config.time.getUTCSeconds(),2)}if(config.baselayer===undefined){config.baselayer=null}this.hasControls=config.hasControls;this.isSelectable=config.isSelectable;this.bbox=config.bbox;this.value="";this.register=config.register;this.maxWidth=config.maxWidth;this.maxHeight=config.maxHeight;this.dataSourceUrl=config.dataSourceUrl;this.statusStr="";this.disabled=false;this.time=config.time;this.baseLayer=config.baseLayer;this.graticule=null;this.projection="EPSG:4326";this.init();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register Map!")}this.isSoteMapDataCached=false;this.updateComponent("");if((this.time!=null)&&(this.baseLayer!=null)){this.activateRelevantLayersDisableTheRest([this.baseLayer],this.time)}this.setExtent(this.bbox);if(REGISTRY){REGISTRY.markComponentReady(this.id)}};SOTE.widget.Map.prototype.handleMapMoveEnd=function(b){var a=b.object.getExtent().transform(b.object.getProjectionObject(),new OpenLayers.Projection(this.projection)).toString();this.setValue(a);this.fire()};SOTE.widget.Map.prototype.activateRelevantLayersDisableTheRest=function(activeProductNames,time){var allLayers=this.getAllLayers();var nLayers=allLayers.length;var myDate=SOTE.util.UTCDateFromISO8601String(time);time=myDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(myDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(myDate.getUTCDate(),2);for(var i=0;i<nLayers;i++){var isLayerFound=false;for(var j=0;j<activeProductNames.length;j++){if((allLayers[i].name==new String(activeProductNames[j]+"__"+time))||(allLayers[i].name==new String(activeProductNames[j]))){allLayers[i].setVisibility(true);isLayerFound=true;if(j==0){this.map.setLayerZIndex(allLayers[i],0);allLayers[i].setOpacity(1)}else{if(this.checkWmsParam(allLayers[i].metadata.preferredOpacity)){allLayers[i].setOpacity(allLayers[i].metadata.preferredOpacity)}else{allLayers[i].setOpacity(this.DEFAULT_OVERLAY_OPACITY)}if(activeProductNames.length>2){this.map.setLayerZIndex(allLayers[i],nLayers-j)}}}}if(!isLayerFound){allLayers[i].setVisibility(false)}}};SOTE.widget.Map.prototype.init=function(){this.container.innerHTML="";var d=function(){window.scrollTo(0,0);document.body.style.height="100%";if(!(/(iphone|ipod)/.test(navigator.userAgent.toLowerCase()))){if(document.body.parentNode){document.body.parentNode.style.height="100%"}}};setTimeout(d,700);setTimeout(d,1500);this.map=document.createElement("div");this.map.setAttribute("id",this.id+"map");this.container.appendChild(this.map);if(this.projection=="EPSG:4326"){this.map=new OpenLayers.Map({div:this.containerId,theme:null,controls:[],maxExtent:new OpenLayers.Bounds(-180,-1350,180,90),projection:this.projection,numZoomLevels:9,fractionalZoom:false,resolutions:this.RESOLUTIONS_ON_SCREEN_GEO_ALL,allOverlays:true,zoom:2})}else{this.map=new OpenLayers.Map({div:this.containerId,theme:null,controls:[],maxExtent:new OpenLayers.Bounds(-4194304,-4194304,4194304,4194304),projection:this.projection,resolutions:this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,allOverlays:true,zoom:2,units:"m",numZoomLevels:6,})}if(this.hasControls){var b=new OpenLayers.Control.ZoomIn();b.title="zoom in";b.displayClass="olControlZoomInCustom";b.id="zoomInCustomId";var c=new OpenLayers.Control.ZoomOut();c.title="zoom out";c.displayClass="olControlZoomOutCustom";c.id="zoomOutCustomId";var a=new OpenLayers.Control.Panel();a.displayClass="olControlZoomPanelCustom";a.addControls(b);a.addControls(c);this.map.addControl(a);this.map.addControl(new OpenLayers.Control.Navigation({dragPanOptions:{enableKinetic:true}}));this.map.addControl(new OpenLayers.Control.Attribution());this.map.addControl(new OpenLayers.Control.ScaleLine({displayClass:"olControlScaleLineCustom"}));this.addGraticuleLayer();var e=this.map.getControlsByClass("OpenLayers.Control.Navigation")[0];e.handlers.wheel.interval=100;e.handlers.wheel.cumulative=false}if(this.isSelectable){this.map.addControl(new OpenLayers.Control.ZoomBox())}if(this.projection=="EPSG:4326"){var f=new OpenLayers.Bounds.fromString("-230, -120, 230, 120",false).transform(new OpenLayers.Projection(this.projection),this.map.getProjectionObject());this.map.restrictedExtent=f}else{this.map.restrictedExtent=new OpenLayers.Bounds.fromString("-6500000,-5000000,6500000,5000000")}if((this.time!=null)&&(this.baseLayer!=null)&&(this.map.layers.length>0)){this.activateRelevantLayersDisableTheRest([this.baseLayer],this.time)}if(this.isSoteMapDataCached){if(this.projection=="EPSG:4326"){this.setExtent("-146.390625,-93.921875,146.390625,93.953125",true);this.fire()}else{this.setExtent("-4194304,-4194304,4194304,4194304",true);this.fire()}}this.map.events.register("moveend",this,this.handleMapMoveEnd)};SOTE.widget.Map.prototype.checkWmsParam=function(a){if((a===undefined)||(a==null)||(a=="")){return false}return true};SOTE.widget.Map.prototype.addLayers=function(d){for(var b=0;b<d.length;b++){if(!this.checkWmsParam(d[b].displayName)){d[b].displayName="unnamed"}if(!this.checkWmsParam(d[b].time)){d[b].time=""}if(!this.checkWmsParam(d[b].format)){d[b].format="image/jpeg"}if(!this.checkWmsParam(d[b].transparent)){d[b].transparent=true}if(!this.checkWmsParam(d[b].projection)){d[b].projection=this.projection}if(!this.checkWmsParam(d[b].numZoomLevels)){d[b].numZoomLevels=(this.projection=="EPSG:4326")?9:6}if(!this.checkWmsParam(d[b].maxExtent)){d[b].maxExtent=(this.projection=="EPSG:4326")?[-180,-1350,180,90]:[-4194304,-4194304,4194304,4194304]}if(!this.checkWmsParam(d[b].maxResolution)){d[b].maxResolution=(this.projection=="EPSG:4326")?0.5625:8192}if(!this.checkWmsParam(d[b].preferredOpacity)){d[b].preferredOpacity=this.DEFAULT_OVERLAY_OPACITY}if(!this.checkWmsParam(d[b].bringToFront)){d[b].bringToFront=false}if(!this.checkWmsParam(d[b].transitionEffect)){d[b].transitionEffect="resize"}if(!this.checkWmsParam(d[b].resolutions)){if(d[b].projection=="EPSG:4326"){d[b].resolutions=this.RESOLUTIONS_ON_SCREEN_GEO_ALL}else{d[b].resolutions=this.RESOLUTIONS_ON_SCREEN_POLAR_ALL}}if(!this.checkWmsParam(d[b].serverResolutions)){if(d[b].projection=="EPSG:4326"){d[b].serverResolutions=this.RESOLUTIONS_ON_SERVER_GEO_250m}else{d[b].serverResolutions=this.RESOLUTIONS_ON_SERVER_POLAR_250m}}if(!this.checkWmsParam(d[b].tileMatrixSet)){if(d[b].projection=="EPSG:4326"){d[b].tileMatrixSet=this.TILEMATRIXSET_GEO_250m}else{d[b].tileMatrixSet=this.TILEMATRIXSET_POLAR_250m}}if(!this.checkWmsParam(d[b].urls)){alert("invalid / no URL passed in for layer "+d[b].displayName);continue}if(!this.checkWmsParam(d[b].wmsProductName)){alert("invalid / unspecified WMS 'layer' parameter");continue}if(!this.checkWmsParam(d[b].tileSize)){var c=new OpenLayers.Layer.WMS(d[b].displayName,d[b].urls,{layers:d[b].wmsProductName,format:d[b].format,transparent:d[b].transparent,},{isBaseLayer:false,visibility:false,transitioneffect:d[b].transitionEffect,projection:d[b].projection,tileSize:new OpenLayers.Size(512,512),metadata:{preferredOpacity:d[b].preferredOpacity,bringToFront:d[b].bringToFront}});if(this.checkWmsParam(d[b].time)){c.mergeNewParams({time:d[b].time})}this.map.addLayer(c)}else{if(this.projection!="EPSG:4326"){this.map.addLayer(new OpenLayers.Layer.WMS(d[b].displayName,d[b].urls,{time:d[b].time,layers:d[b].wmsProductName,Format:d[b].format},{tileSize:new OpenLayers.Size(d[b].tileSize[0],d[b].tileSize[1]),buffer:0,transitionEffect:d[b].transitionEffect,projection:d[b].projection,numZoomLevels:d[b].numZoomLevels,maxExtent:new OpenLayers.Bounds(d[b].maxExtent[0],d[b].maxExtent[1],d[b].maxExtent[2],d[b].maxExtent[3]),maxResolution:d[b].maxResolution,resolutions:d[b].resolutions,serverResolutions:d[b].serverResolutions,visibility:false,metadata:{preferredOpacity:d[b].preferredOpacity,bringToFront:d[b].bringToFront}}))}else{var a=new OpenLayers.Layer.WMTS({name:d[b].displayName,url:d[b].urls,layer:d[b].wmsProductName,matrixSet:d[b].tileMatrixSet,format:d[b].format,buffer:0,style:"",opacity:d[b].preferredOpacity,transitionEffect:d[b].transitionEffect,projection:d[b].projection,numZoomLevels:d[b].numZoomLevels,maxResolution:d[b].maxResolution,resolutions:d[b].resolutions,serverResolutions:d[b].serverResolutions,visibility:false,metadata:{preferredOpacity:d[b].preferredOpacity,bringToFront:d[b].bringToFront},tileSize:new OpenLayers.Size(d[b].tileSize[0],d[b].tileSize[1]),maxExtent:new OpenLayers.Bounds(d[b].maxExtent[0],d[b].maxExtent[1],d[b].maxExtent[2],d[b].maxExtent[3]),isBaseLayer:false});a.mergeNewParams({time:d[b].time});this.map.addLayer(a)}}}if(this.graticule!=null){this.map.setLayerZIndex(this.graticule.gratLayer,this.getAllLayers().length-1)}};SOTE.widget.Map.prototype.addGraticuleLayer=function(){var a=new OpenLayers.Symbolizer.Line({strokeColor:"#AAAAAA",strokeOpacity:0.95,strokeWidth:1.35,strokeLinecap:"square",strokeDashstyle:"dot"});var b=new OpenLayers.Symbolizer.Text({fontFamily:"Gill Sans",fontSize:"16",fontWeight:"550",fontColor:"#0000e1",fontOpacity:1});this.graticule=new OpenLayers.Control.Graticule({layerName:"ol_graticule",numPoints:2,labelled:true,lineSymbolizer:a,labelSymbolizer:b});this.map.addControl(this.graticule)};SOTE.widget.Map.prototype.setValue=function(a){return this.setExtent(a)};SOTE.widget.Map.prototype.getValue=function(){return this.id+"="+this.value};SOTE.widget.Map.prototype.getAllLayers=function(){return this.map.layers};SOTE.widget.Map.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.Map.prototype.validate=function(){var b=this.map.getExtent();if(b==null){this.setStatus("Could not retrieve current extent");return false}var a=b.transform(this.map.getProjectionObject(),new OpenLayers.Projection(this.projection)).toString();if((a.left<-180)||(a.right>180)||(a.top>90)||(a.bottom<-90)){this.setStatus("Current extent is out of bounds");return false}return true};SOTE.widget.Map.prototype.setDataSourceUrl=function(a){};SOTE.widget.Map.prototype.getDataSourceUrl=function(){};SOTE.widget.Map.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Map.prototype.getStatus=function(){return this.statusStr};SOTE.widget.Map.prototype.setExtent=function(b,c){var a=new OpenLayers.Bounds.fromString(b,false).transform(new OpenLayers.Projection(this.projection),this.map.getProjectionObject());if(a==null){this.setStatus("Could not set extent");return false}if(b==this.value&&!c){return}this.value=b;this.map.zoomToExtent(a,true);return true};SOTE.widget.Map.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Map!")}};SOTE.widget.Map.prototype.updateComponent=function(a){};
\ No newline at end of file
diff --git a/js/sote-min.js b/js/sote-min.js
index 93d24e8c1..5c94c3e71 100644
--- a/js/sote-min.js
+++ b/js/sote-min.js
@@ -1 +1 @@
-window.onload=function(){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var h=new YAHOO.widget.Panel("iewarning",{zIndex:1020,visible:false,underlay:"matte"});var g="<div><h4>Internet Explorer is not currently supported</h4><br /><p>Worldview uses a set of browser technologies that are not currently supported by Internet Explorer. We are awaiting the release of IE version 10 and are hopeful that it will load Worldview properly. In the meantime, please try loading this page in Mozilla Firefox, Google Chrome, Apple Safari, or a tablet device. <br /><br />Thanks for your patience.</p><br /><p>-The Worldview development team";h.setBody(g);h.render(document.body);h.show();h.center()}this.selector=new YAHOO.widget.Panel("selector",{zIndex:1019,visible:false});this.selector.setBody("<div id='selectorbox'></div>");this.selector.render(document.body);var b=new SOTE.widget.MapSote("map",{baseLayer:"MODIS_Terra_CorrectedReflectance_TrueColor"});var d=new SOTE.widget.Switch("switch",{dataSourceUrl:"a",selected:"geographic"});var c=new SOTE.widget.Bank("products",{dataSourceUrl:"ap_products.php",title:"My Layers",selected:{antarctic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.polarview:coastS10",arctic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.polarview:coastArctic10",geographic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.sedac_bound"},categories:["Base Layers","Overlays"],callback:this.showSelector,selector:this.selector});var e=new SOTE.widget.Selector("selectorbox",{dataSourceUrl:"ap_products.php",categories:["Base Layers","Overlays"]});var f=new SOTE.widget.DateSpan("time",{hasThumbnail:false})};function showSelector(b){var a=b.data.selector;a.show();a.center()}function showOverlay(){if(this.overlay===undefined){this.overlay=new YAHOO.widget.Panel("panel1",{zIndex:1020,visible:false});var a="<div ><h3>Welcome to Worldview</h3><p>This new tool from NASA's <a href='http://earthdata.nasa.gov/about-eosdis' target='_blank'>EOSDIS</a> provides the capability to interactively browse full-resolution, global, near real-time satellite imagery from 50+ data products from <a href='http://lance.nasa.gov/' target='_blank'>LANCE</a>. In essence, this shows the entire Earth as it looks \"right now\" - or at least as it has looked within the past few hours. This supports time-critical application areas such as wildfire management, air quality measurements, and weather forecasting. The data is generally available within three hours of observation and can be compared to observations from the past week - just drag the orange time slider at the bottom of the screen to change the currently-displayed date. Arctic and Antarctic projections of several products are also available for a \"full globe\" perspective. Browsing on tablet devices is currently supported (iPad 2+ recommended) for mobile access to this spacecraft imagery while in the field or on the couch. Please note, however, that this is an alpha (preview) release and many features are still under development.</p><br /><p>Worldview uses the newly-developed <a href='http://earthdata.nasa.gov/gibs' target='_blank'>Global Image Browse Services (GIBS)</a> to rapidly retrieve its full-resolution imagery to provide an interactive browsing experience. While Worldview uses <a href='http://openlayers.org/' target='_blank'>OpenLayers</a> as its mapping library, GIBS also supports Google Earth, NASA World Wind, and several other clients. We encourage interested developers to build their own clients or integrate NASA imagery into their existing ones using these services.</p><h3>Acknowledgements</h3><p>Near-real time data is courtesy of LANCE data providers: <a href='http://lance.nasa.gov/home/about/amsr-e-sips/' target='_blank'>AMSR-E SIPS</a>, <a href='http://lance.nasa.gov/home/about/ges-disc/' target='_blank'>GES DISC</a>, <a href='http://lance.nasa.gov/home/about/modaps/' target='_blank'>MODAPS</a>, and <a href='http://lance.nasa.gov/home/about/omi-sips/' target='_blank'>OMI SIPS</a>. Socioeconomic data supplied by <a href='http://sedac.ciesin.org/' target='_blank'>SEDAC</a>. Credit for development of the data ingest and serving system belongs to the Tiled WMS development team at NASA/JPL's Physical Oceanography Distributed Active Archive Center (<a href='http://podaac.jpl.nasa.gov/' target='_blank'>PO.DAAC</a>). Special thanks to the NASA/GSFC <a href='http://svs.gsfc.nasa.gov/' target='_blank'>Scientific Visualization Studio</a>, Steve Romalewski and Dave Burgoon/<a href='http://www.urbanresearch.org/' target='_blank'>CUNY CUR</a>, Bruce Campbell/<a href='http://www.risd.edu/' target='_blank'>RISD</a>, and Ben Fry/<a href='http://www.fathom.info/' target='_blank'>Fathom Information Design</a> for their invaluable feedback, much of which is still to be implemented. Additional thanks to Katie Lewis, NASA/GSFC, for graphic design and nomenclature support.</p><h3>Disclaimer</h3><p>The LANCE system is operated by the NASA/GSFC Earth Science Data Information System (ESDIS). The information presented through the LANCE Rapid Response system and the LANCE FIRMS are provided “as is” and users bear all responsibility and liability for their use of data, and for any loss of business or profits, or for any indirect, incidental or consequential damages arising out of any use of, or inability to use, the data, even if NASA or ESDIS were previously advised of the possibility of such damages, or for any other claim by you or any other person. Please read the full disclaimer <a href='http://earthdata.nasa.gov/data/nrt-data/disclaimer' target='_blank'>here</a>.</p><h3>Support</h3><p>Comments/suggestions/problem reports are welcome via <a href='mailto:[email protected]?subject=Feedback%20for%20EOSDIS%20Worldview%20tool'>[email protected]</a>. Please note that Internet Explorer is not currently supported and we are working to determine if and when it can be.</p><br /><p>Version: <a href='release_notes.txt' target='_blank'>2012-07-15</a><br />Page Editor: <a href='mailto:[email protected]'>Tilak Joshi</a><br />Responsible NASA Official: <a href='mailto:[email protected]'>Ryan Boller</a><br /></p></div>";this.overlay.setBody(a);this.overlay.render(document.body)}this.overlay.show();this.overlay.center()}function showPermalink(){if(this.permOverlay===undefined){this.permOverlay=new YAHOO.widget.Panel("panel_perm",{width:"300px",zIndex:1020,visible:false});var j="<div id='permpanel' ><!-- <h3>Permalink:</h3> --><span style='font-weight:400; font-size:12px; line-spacing:24px; '>Copy and paste the following link to share this view:</span><input type='text' value='' name='permalink_content' id='permalink_content' /><p><br /><i>Note: Worldview contains only the most recent 7 days of data, this link will expire after the currently selected time is older than 7 days.</i></p></div>";this.permOverlay.setHeader("&nbsp;&nbsp;&nbsp;&nbsp;Permalink");this.permOverlay.setBody(j);this.permOverlay.render(document.body)}var g="?";var c=REGISTRY.getComponents();for(var e=0;e<c.length;e++){if(typeof c[e].obj.getValue=="function"){g+=c[e].obj.getValue()+"&"}}var b=SOTE.util.extractFromQuery("map",g);var h=SOTE.util.extractFromQuery("products",g);var d=SOTE.util.extractFromQuery("time",g);var k=SOTE.util.extractFromQuery("switch",g);g="?map="+b+"&products="+h+"&time="+d+"&switch="+k;var a=window.location.href;var f=a.split("?")[0];f=(f!==null&&f!==undefined)?f:a;$("#permalink_content").val(f+g);this.permOverlay.show();this.permOverlay.center();document.getElementById("permalink_content").focus();document.getElementById("permalink_content").select()};
\ No newline at end of file
+window.onload=function(){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var h=new YAHOO.widget.Panel("iewarning",{zIndex:1020,visible:false,underlay:"matte"});var g="<div><h4>Internet Explorer is not currently supported</h4><br /><p>Worldview uses a set of browser technologies that are not currently supported by Internet Explorer. We are awaiting the release of IE version 10 and are hopeful that it will load Worldview properly. In the meantime, please try loading this page in Mozilla Firefox, Google Chrome, Apple Safari, or a tablet device. <br /><br />Thanks for your patience.</p><br /><p>-The Worldview development team";h.setBody(g);h.render(document.body);h.show();h.center()}this.selector=new YAHOO.widget.Panel("selector",{zIndex:1019,visible:false});this.selector.setBody("<div id='selectorbox'></div>");this.selector.render(document.body);var b=new SOTE.widget.MapSote("map",{baseLayer:"MODIS_Terra_CorrectedReflectance_TrueColor"});var d=new SOTE.widget.Switch("switch",{dataSourceUrl:"a",selected:"geographic"});var c=new SOTE.widget.Bank("products",{dataSourceUrl:"ap_products.php",title:"My Layers",selected:{antarctic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.polarview:coastS10",arctic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.polarview:coastArctic10",geographic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.sedac_bound"},categories:["Base Layers","Overlays"],callback:this.showSelector,selector:this.selector});var e=new SOTE.widget.Selector("selectorbox",{dataSourceUrl:"ap_products.php",categories:["Base Layers","Overlays"]});var f=new SOTE.widget.DateSpan("time",{hasThumbnail:false})};function showSelector(b){var a=b.data.selector;a.show();a.center()}function showOverlay(){if(this.overlay===undefined){this.overlay=new YAHOO.widget.Panel("panel1",{zIndex:1020,visible:false});var a="<div ><h3>Welcome to Worldview</h3><p>This new tool from NASA's <a href='http://earthdata.nasa.gov/about-eosdis' target='_blank'>EOSDIS</a> provides the capability to interactively browse full-resolution, global, near real-time satellite imagery from 50+ data products from <a href='http://lance.nasa.gov/' target='_blank'>LANCE</a>. In essence, this shows the entire Earth as it looks \"right now\" - or at least as it has looked within the past few hours. This supports time-critical application areas such as wildfire management, air quality measurements, and weather forecasting. The data is generally available within three hours of observation and can be compared to observations from the past week - just drag the orange time slider at the bottom of the screen to change the currently-displayed date. Arctic and Antarctic projections of several products are also available for a \"full globe\" perspective. Browsing on tablet devices is currently supported (iPad 2+ recommended) for mobile access to this spacecraft imagery while in the field or on the couch. Please note, however, that this is an alpha (preview) release and many features are still under development.</p><br /><p>Worldview uses the newly-developed <a href='http://earthdata.nasa.gov/gibs' target='_blank'>Global Image Browse Services (GIBS)</a> to rapidly retrieve its full-resolution imagery to provide an interactive browsing experience. While Worldview uses <a href='http://openlayers.org/' target='_blank'>OpenLayers</a> as its mapping library, GIBS also supports Google Earth, NASA World Wind, and several other clients. We encourage interested developers to build their own clients or integrate NASA imagery into their existing ones using these services.</p><h3>Acknowledgements</h3><p>Near-real time data is courtesy of LANCE data providers: <a href='http://lance.nasa.gov/home/about/amsr-e-sips/' target='_blank'>AMSR-E SIPS</a>, <a href='http://lance.nasa.gov/home/about/ges-disc/' target='_blank'>GES DISC</a>, <a href='http://lance.nasa.gov/home/about/modaps/' target='_blank'>MODAPS</a>, and <a href='http://lance.nasa.gov/home/about/omi-sips/' target='_blank'>OMI SIPS</a>. Socioeconomic data supplied by <a href='http://sedac.ciesin.org/' target='_blank'>SEDAC</a>. Credit for development of the data ingest and serving system belongs to the Tiled WMS development team at NASA/JPL's Physical Oceanography Distributed Active Archive Center (<a href='http://podaac.jpl.nasa.gov/' target='_blank'>PO.DAAC</a>). Special thanks to the NASA/GSFC <a href='http://svs.gsfc.nasa.gov/' target='_blank'>Scientific Visualization Studio</a>, Steve Romalewski and Dave Burgoon/<a href='http://www.urbanresearch.org/' target='_blank'>CUNY CUR</a>, Bruce Campbell/<a href='http://www.risd.edu/' target='_blank'>RISD</a>, and Ben Fry/<a href='http://www.fathom.info/' target='_blank'>Fathom Information Design</a> for their invaluable feedback, much of which is still to be implemented. Additional thanks to Katie Lewis, NASA/GSFC, for graphic design and nomenclature support.</p><h3>Disclaimer</h3><p>The LANCE system is operated by the NASA/GSFC Earth Science Data Information System (ESDIS). The information presented through the LANCE Rapid Response system and the LANCE FIRMS are provided “as is” and users bear all responsibility and liability for their use of data, and for any loss of business or profits, or for any indirect, incidental or consequential damages arising out of any use of, or inability to use, the data, even if NASA or ESDIS were previously advised of the possibility of such damages, or for any other claim by you or any other person. Please read the full disclaimer <a href='http://earthdata.nasa.gov/data/nrt-data/disclaimer' target='_blank'>here</a>.</p><h3>Support</h3><p>Comments/suggestions/problem reports are welcome via <a href='mailto:[email protected]?subject=Feedback%20for%20EOSDIS%20Worldview%20tool'>[email protected]</a>. Please note that Internet Explorer is not currently supported and we are working to determine if and when it can be.</p><br /><p>Version: <a href='release_notes.txt' target='_blank'>2012-07-15</a><br />Front-End Lead/Architect: <a href='mailto:[email protected]'>Tilak Joshi</a><br />Responsible NASA Official: <a href='mailto:[email protected]'>Ryan Boller</a><br /></p></div>";this.overlay.setBody(a);this.overlay.render(document.body)}this.overlay.show();this.overlay.center()}function showPermalink(){if(this.permOverlay===undefined){this.permOverlay=new YAHOO.widget.Panel("panel_perm",{width:"300px",zIndex:1020,visible:false});var j="<div id='permpanel' ><!-- <h3>Permalink:</h3> --><span style='font-weight:400; font-size:12px; line-spacing:24px; '>Copy and paste the following link to share this view:</span><input type='text' value='' name='permalink_content' id='permalink_content' /><p><br /><i>Note: Worldview contains only the most recent 7 days of data, this link will expire after the currently selected time is older than 7 days.</i></p></div>";this.permOverlay.setHeader("&nbsp;&nbsp;&nbsp;&nbsp;Permalink");this.permOverlay.setBody(j);this.permOverlay.render(document.body)}var g="?";var c=REGISTRY.getComponents();for(var e=0;e<c.length;e++){if(typeof c[e].obj.getValue=="function"){g+=c[e].obj.getValue()+"&"}}var b=SOTE.util.extractFromQuery("map",g);var h=SOTE.util.extractFromQuery("products",g);var d=SOTE.util.extractFromQuery("time",g);var k=SOTE.util.extractFromQuery("switch",g);g="?map="+b+"&products="+h+"&time="+d+"&switch="+k;var a=window.location.href;var f=a.split("?")[0];f=(f!==null&&f!==undefined)?f:a;$("#permalink_content").val(f+g);this.permOverlay.show();this.permOverlay.center();document.getElementById("permalink_content").focus();document.getElementById("permalink_content").select()};
\ No newline at end of file
diff --git a/js/util-min.js b/js/util-min.js
index 921016d26..e41ef2277 100644
--- a/js/util-min.js
+++ b/js/util-min.js
@@ -1 +1 @@
-SOTE.namespace("SOTE.util");SOTE.util.extractFromQuery=function(b,a){var c=new RegExp("[\\?&#]*"+b+"=([^&#]*)");var d=c.exec(a);if(d==null){return""}else{return d[1]}};SOTE.util.throwError=function(a){o=new YAHOO.widget.Panel("WVerror",{width:"300px",zIndex:1020,visible:false});o.setHeader("&nbsp;&nbsp;&nbsp;&nbsp;Warning");o.setBody(a);o.render(document.body);o.show();o.center();o.hideEvent.subscribe(function(b){setTimeout(function(){o.destroy()},25)})};SOTE.util.getJSON=function(d,c,f,b){var a=function(h,g,i){return f(h,g,i,c)};var e=function(i,g,h){return b(i,g,h,c)};$.ajax({url:d,dataType:"json",success:a,error:e})};SOTE.util.zeroPad=function(b,a){var c=a-b.toString().length+1;return Array(+(c>0&&c)).join("0")+b};SOTE.util.UTCDateFromISO8601String=function(dateAsString){var dateTimeArr=dateAsString.split(/T/);var yyyymmdd=dateTimeArr[0];var hhmmss=dateTimeArr[1];var year=yyyymmdd.split("-")[0];var month=eval(yyyymmdd.split("-")[1]-1);var day=yyyymmdd.split("-")[2];var hour=hhmmss.split(":")[0];var minute=hhmmss.split(":")[1];var second=hhmmss.split(":")[2];return new Date(year,month,day,hour,minute,second)};SOTE.util.ISO8601StringFromDate=function(d){var timeString=d.getFullYear()+"-"+SOTE.util.zeroPad(eval(d.getMonth()+1),2)+"-"+SOTE.util.zeroPad(d.getDate(),2)+"T"+SOTE.util.zeroPad(d.getHours(),2)+":"+SOTE.util.zeroPad(d.getMinutes(),2)+":"+SOTE.util.zeroPad(d.getSeconds(),2);return timeString};SOTE.util.DayNameFromUTCDayInt=function(a){switch(a){case 0:return"Sunday";case 1:return"Monday";case 2:return"Tuesday";case 3:return"Wednesday";case 4:return"Thursday";case 5:return"Friday";case 6:return"Saturday";default:return"Invalid"}};SOTE.util.generateProductLayersForDateRange=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays,screenResolutionsArr,serverResolutionsArr){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,resolutions:screenResolutionsArr,serverResolutions:serverResolutionsArr,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateProductLayersForDateRangeTMS=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays,screenResolutionsArr,serverResolutionsArr,tileMatrixSetStr){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,resolutions:screenResolutionsArr,serverResolutions:serverResolutionsArr,tileMatrixSet:tileMatrixSetStr,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateProductLayersForDateRangeNoOversample=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateWmsProductLayersForDateRange=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,projectionStr,preferredOpacityFloat,isSingleTile,numDays){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,projection:projectionStr,preferredOpacity:preferredOpacityFloat,singleTile:isSingleTile};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};
\ No newline at end of file
+SOTE.namespace("SOTE.util");SOTE.util.extractFromQuery=function(b,a){var c=new RegExp("[\\?&#]*"+b+"=([^&#]*)");var d=c.exec(a);if(d==null){return""}else{return d[1]}};SOTE.util.throwError=function(a){o=new YAHOO.widget.Panel("WVerror",{width:"300px",zIndex:1020,visible:false});o.setHeader("&nbsp;&nbsp;&nbsp;&nbsp;Warning");o.setBody(a);o.render(document.body);o.show();o.center();o.hideEvent.subscribe(function(b){setTimeout(function(){o.destroy()},25)})};SOTE.util.getJSON=function(d,c,f,b){var a=function(h,g,i){return f(h,g,i,c)};var e=function(i,g,h){return b(i,g,h,c)};$.ajax({url:d,dataType:"json",success:a,error:e})};SOTE.util.zeroPad=function(b,a){var c=a-b.toString().length+1;return Array(+(c>0&&c)).join("0")+b};SOTE.util.UTCDateFromISO8601String=function(dateAsString){var dateTimeArr=dateAsString.split(/T/);var yyyymmdd=dateTimeArr[0];var hhmmss=dateTimeArr[1];var year=yyyymmdd.split("-")[0];var month=eval(yyyymmdd.split("-")[1]-1);var day=yyyymmdd.split("-")[2];var hour=hhmmss.split(":")[0];var minute=hhmmss.split(":")[1];var second=hhmmss.split(":")[2];return new Date(year,month,day,hour,minute,second)};SOTE.util.getValuesFromISO8601String=function(dateAsString){var dateTimeArr=dateAsString.split(/T/);var yyyymmdd=dateTimeArr[0];var hhmmss=dateTimeArr[1];var year=yyyymmdd.split("-")[0];var month=eval(yyyymmdd.split("-")[1]-1);var day=yyyymmdd.split("-")[2];var hour=hhmmss.split(":")[0];var minute=hhmmss.split(":")[1];var second=hhmmss.split(":")[2];return[year,month,day,hour,minute,second]};SOTE.util.ISO8601StringFromDate=function(d){var timeString=d.getFullYear()+"-"+SOTE.util.zeroPad(eval(d.getMonth()+1),2)+"-"+SOTE.util.zeroPad(d.getDate(),2)+"T"+SOTE.util.zeroPad(d.getHours(),2)+":"+SOTE.util.zeroPad(d.getMinutes(),2)+":"+SOTE.util.zeroPad(d.getSeconds(),2);return timeString};SOTE.util.DayNameFromUTCDayInt=function(a){switch(a){case 0:return"Sunday";case 1:return"Monday";case 2:return"Tuesday";case 3:return"Wednesday";case 4:return"Thursday";case 5:return"Friday";case 6:return"Saturday";default:return"Invalid"}};SOTE.util.generateProductLayersForDateRange=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays,screenResolutionsArr,serverResolutionsArr){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,resolutions:screenResolutionsArr,serverResolutions:serverResolutionsArr,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateProductLayersForDateRangeTMS=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays,screenResolutionsArr,serverResolutionsArr,tileMatrixSetStr){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,resolutions:screenResolutionsArr,serverResolutions:serverResolutionsArr,tileMatrixSet:tileMatrixSetStr,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateProductLayersForDateRangeNoOversample=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateWmsProductLayersForDateRange=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,projectionStr,preferredOpacityFloat,isSingleTile,numDays){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,projection:projectionStr,preferredOpacity:preferredOpacityFloat,singleTile:isSingleTile};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};
\ No newline at end of file