Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

* Added minified .js and .css to repository * Modified index.html to use minified files * Appended querystring to all minified file names to prevent caching

Tilak Joshif66601b241b9
diff --git a/css/accordionPicker-min.css b/css/accordionPicker-min.css
new file mode 100644
index 000000000..848f02b01
--- /dev/null
+++ b/css/accordionPicker-min.css
@@ -0,0 +1 @@
+a.accordionToggler{float:left;display:block;width:28px;height:36px;border-radius:0 10px 10px 0;-moz-border-radius:0 10px 10px 0;-webkit-border-radius:0 10px 10px 0;text-decoration:none;background:none no-repeat scroll center rgba(0,0,0,0.88);color:#fff;position:relative;top:30px;letter-spacing:2px;font-family:"Gill Sans","Helvetica",sans-serif}a.atcollapse{background-image:url("../images/expandIn.png")}a.atexpand{background-image:url("../images/expandOut.png")}.accordion{position:relative}.ui-accordion{float:left;display:block;width:230px;color:#fff;font:1.05em "Gill Sans",sans-serif;text-shadow:none;font-weight:120}.ui-accordion{border-radius:0 20px 20px 0;-moz-border-radius:0 20px 20px 0;-webkit-border-radius:0 20px 20px 0;background:none repeat scroll 0 0 rgba(0,0,0,0.8);border:rgba(0,0,0,0.35) 10px solid;border-width:10px 10px 10px 0}.ui-accordion a{display:block;text-decoration:none}.ui-accordion label span.accordionLabel{display:inline-block;font-weight:250}.ui-accordion label span.accordionSub{display:block;font-weight:200;margin-left:21px}a.ui-accordion-header{border-radius:0;border:rgba(30,30,30,0.2) 1px solid;border-width:0 0 1px 0;color:#fff;padding:2px 5px}ul.ui-accordion-content{list-style-type:none;background:rgba(10,10,10,0.1);border-radius:0;color:#fff;font-size:.85em;display:block;overflow-y:auto!important;overflow-x:hidden!important;height:150px!important}ul.ui-accordion-content li{border:rgba(30,30,30,0.2) 1px solid;background:rgba(228,108,10,0.1);border-width:1px 0 1px 0;width:100%;padding:2px 0 2px 10px}a.ui-accordion-header span{margin-left:5px}a.ui-accordion-header span.ui-icon-triangle-1-e{margin:2px 0 0 0;float:left;width:14px;height:12px;display:block;background:transparent url("../images/collapsed.png")}a.ui-accordion-header span.ui-icon-triangle-1-s{margin:2px 0 0 0;float:left;width:14px;height:12px;display:block;background:transparent url("../images/expanded.png")}
\ No newline at end of file
diff --git a/css/bank-min.css b/css/bank-min.css
new file mode 100644
index 000000000..b75559c1f
--- /dev/null
+++ b/css/bank-min.css
@@ -0,0 +1 @@
+canvas{float:left}a.accordionToggler{float:left;display:inline-block;width:28px;height:36px;border-radius:0 10px 10px 0;-moz-border-radius:0 10px 10px 0;-webkit-border-radius:0 10px 10px 0;text-decoration:none;background:none no-repeat scroll center rgba(68,68,68,.85);color:#fff;position:relative;top:30px;letter-spacing:2px;font-family:"Gill Sans","Helvetica",sans-serif}a.atcollapse{background-image:url("../images/expandIn.png")}a.atexpand{background-image:url("../images/expandOut.png")}.bank{display:inline-block;float:left;width:230px;min-height:230px;padding-bottom:20px;background:rgba(68,68,68,.85);font:10px/12px "Gill Sans","helvetica",sans-serif;color:#141b4c;border-radius:0 10px 10px 0;text-shadow:none;overflow:auto}.bank h1,h2,h3,h4{margin:0;padding:0}.bank h2{display:inline-block;float:left;color:#fff;font-size:18px;font-weight:100;border:0;padding:6px 0}.bank h3{display:inline-block;float:left;color:#333;font-size:14px;font-weight:100;border:0;text-decoration:none}#callSelectorLink{display:inline-block;width:32px;height:32px;background:transparent url("../images/addLayers.png");margin-left:50px;float:right}.bank div,.bank ul{display:block;overflow:auto;width:210px;margin:0 auto;padding:5px;max-height:250px}.bank li.item{padding:0;display:block;background:#fff;width:200px;border-radius:5px;padding:5px;margin-top:10px}.bank li.item a{float:right;position:relative;top:-8px;right:-8px}.bank li.item h4{font-size:9px;font-weight:bold}.bank li.item span.palette{display:block;width:185px;overflow:hidden;margin-top:5px}.bank li.item ul.palette li{float:left}.bank ul.category{min-height:50px;background:rgba(255,255,255,.7);border-radius:5px;margin-top:10px}.bank ul.category li h3{display:block;clear:both;float:none}span.p-min{float:left}span.p-max{float:left}span.p-units{float:left}
\ No newline at end of file
diff --git a/css/dateSpan-min.css b/css/dateSpan-min.css
new file mode 100644
index 000000000..9b73ffc98
--- /dev/null
+++ b/css/dateSpan-min.css
@@ -0,0 +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
diff --git a/css/map-min.css b/css/map-min.css
new file mode 100644
index 000000000..cfdfb35db
--- /dev/null
+++ b/css/map-min.css
@@ -0,0 +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
diff --git a/css/menuPicker-min.css b/css/menuPicker-min.css
new file mode 100644
index 000000000..142f60bfe
--- /dev/null
+++ b/css/menuPicker-min.css
@@ -0,0 +1 @@
+ul.menuPicker{margin:0;padding:0;color:white;list-style:none;display:block}ul.menuPicker li{border:1px solid black;background:#666;padding:.2em 1em}ul.menuPicker li:hover{background:#9b1c26}ul.menuPicker li.disabled{background:#999}
\ No newline at end of file
diff --git a/css/selector-min.css b/css/selector-min.css
new file mode 100644
index 000000000..e1092acd3
--- /dev/null
+++ b/css/selector-min.css
@@ -0,0 +1 @@
+.selector{display:block;width:100%;height:510px;padding-bottom:20px;font:10px/12px "Gill Sans","helvetica",sans-serif!important;color:#141b4c;border-radius:10px;text-shadow:none;overflow:auto}.selector h1,h2,h3,h4{margin:0;padding:0}.selector h2{display:inline-block;float:left;color:#fff;font-size:18px;font-weight:100;border:0;padding:6px 0}.selector h3{display:inline-block;float:left;color:#333;font-size:14px;font-weight:100;border:0;text-decoration:none}.selector div,.selector ul{display:block;overflow:hidden;width:98%;margin:0 auto;padding:5px}.selector li.selectorItem{padding:0;display:block;background:#fff;width:200px;height:38px;border-radius:5px;padding:5px;margin-top:10px;float:left;margin-left:5px;overflow:hidden}.selector li.selectorItem input{float:right}.selector li.selectorItem h4{font-size:9px!important;font-weight:bold!important;color:#141b4c!important}.selector ul.category{min-height:170px;background:rgba(255,255,255,.7);border-radius:5px;margin-top:10px;max-height:190px;overflow:auto}.selector ul.category li h3{display:block!important;clear:both;float:none!important;color:#333!important;margin-left:5px}.selector a.flowbutton{text-decoration:none;display:inline-block;float:left;color:#fff!important;font-size:14px;font-weight:100;border:0;padding:6px 0;margin-top:20px;margin-left:5px}.selector ul li div{padding:0!important}.selector ul.toplevel{padding:0}.selector ul.toplevel li{float:left;width:auto;margin:20px 20px 0 0}.selector ul.toplevel img{border-radius:5px;border:#fff 2px solid}.selector ul.toplevel a p{width:100%;text-align:center;color:#fff;font-weight:400;font-size:16px}#selector .bd{background:rgba(68,68,68,.85)!important;border-radius:0 0 10px 10px}#selector .hd{background:rgba(68,68,68,.65)!important;border-radius:10px 10px 0 0}#selector_c .yui-panel{border-radius:10px}#selector_c .underlay{border-radius:10px}
\ No newline at end of file
diff --git a/css/sote-min.css b/css/sote-min.css
new file mode 100644
index 000000000..d7822a967
--- /dev/null
+++ b/css/sote-min.css
@@ -0,0 +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
diff --git a/index.html b/index.html
index c6c239c9c..ed072c850 100644
--- a/index.html
+++ b/index.html
@@ -43,34 +43,32 @@
<!-- CSS for map style -->
- <link type="text/css" href="css/map.css" rel="Stylesheet" />
- <link type="text/css" href="css/dateSpan.css" rel="Stylesheet" />
- <link type="text/css" href="css/menuPicker.css" rel="Stylesheet" />
- <link type="text/css" href="css/accordionPicker.css" rel="Stylesheet" />
- <link type="text/css" href="css/bank.css" rel="Stylesheet" />
- <link type="text/css" href="css/selector.css" rel="Stylesheet" />
- <link type="text/css" href="css/sote.css" rel="Stylesheet" />
+ <link type="text/css" href="css/map-min.css?v=0.1.0" rel="Stylesheet" />
+ <link type="text/css" href="css/dateSpan-min.css?v=0.1.0" rel="Stylesheet" />
+ <link type="text/css" href="css/menuPicker-min.css?v=0.1.0" rel="Stylesheet" />
+ <link type="text/css" href="css/accordionPicker-min.css?v=0.1.0" rel="Stylesheet" />
+ <link type="text/css" href="css/bank-min.css?v=0.1.0" rel="Stylesheet" />
+ <link type="text/css" href="css/selector-min.css?v=0.1.0" rel="Stylesheet" />
+ <link type="text/css" href="css/sote-min.css?v=0.1.0" rel="Stylesheet" />
<!-- External Javascript includes -->
<script type="text/javascript" src="js/ext/openlayers-2.12/OpenLayers.js?mobile"></script>
<script type="text/javascript" src="js/ext/datejs/date.js"></script>
-<!-- <script type="text/javascript" src="js/ext/colorbox/jquery.colorbox-min.js"></script> -->
-
<!-- SOTE component includes -->
- <script type="text/javascript" src="js/component.js"></script>
- <script type="text/javascript" src="js/registry.js"></script>
- <script type="text/javascript" src="js/util.js"></script>
- <script type="text/javascript" src="js/map.js"></script>
- <script type="text/javascript" src="js/mapSote.js"></script>
- <script type="text/javascript" src="js/dateSpan.js"></script>
- <script type="text/javascript" src="js/menuPicker.js"></script>
- <script type="text/javascript" src="js/accordionPicker.js"></script>
- <script type="text/javascript" src="js/bank.js"></script>
- <script type="text/javascript" src="js/switch.js"></script>
- <script type="text/javascript" src="js/selector.js"></script>
- <script type="text/javascript" src="js/sote.js"></script>
+ <script type="text/javascript" src="js/component-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/registry-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/util-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/map-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/mapSote-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/dateSpan-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/menuPicker-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/accordionPicker-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/bank-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/switch-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/selector-min.js?v=0.1.0"></script>
+ <script type="text/javascript" src="js/sote-min.js?v=0.1.0"></script>
</head>
diff --git a/js/accordionPicker-min.js b/js/accordionPicker-min.js
new file mode 100644
index 000000000..63e517511
--- /dev/null
+++ b/js/accordionPicker-min.js
@@ -0,0 +1 @@
+SOTE.namespace("SOTE.widget.AccordionPicker");SOTE.widget.AccordionPicker.prototype=new SOTE.widget.Component;SOTE.widget.AccordionPicker=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}this.id=a;this.containerId=a;if(b===undefined){b={}}if(b.dataSourceUrl===undefined){b.dataSourceUrl=null}if(b.items===undefined){b.items=null}if(b.selected===undefined){b.selected=null}this.value="";this.selected=b.selected;this.expanded=null;this.initRenderComplete=false;this.dataSourceUrl=b.dataSourceUrl;this.statusStr="";this.init();this.updateComponent("")};SOTE.widget.AccordionPicker.prototype.init=function(){this.render();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register AccordionPicker!")}};SOTE.widget.AccordionPicker.prototype.render=function(){if(this.items===undefined){return false}this.container.innerHTML="";var j;var d;var g=null;var k=document.createElement("form");k.setAttribute("class","accordion");k.setAttribute("id",this.id+"accordion");for(var b in this.items){if(b==="expanded"){if(this.items[b]!==undefined&&this.items[b]!==""){j=this.items[b].replace(" ","")}continue}if(b==="selected"){d=this.items[b];continue}var r=b.replace(" ","");var q=document.createElement("a");q.setAttribute("href","#");q.setAttribute("id",this.id+r);q.innerHTML="<span>"+b+"</span>";k.appendChild(q);var f=document.createElement("ul");for(var h=0;h<this.items[b].length;h++){var o=this.items[b][h];var p=document.createElement("li");if(o.type!=="single"&&o.type!=="multi"){alert("Invalid list item!")}else{var a=this.id+r+"Item"+h;var c=(o.disabled!==undefined&&o.disabled===true)?"disabled":"";var m=(o.type==="single")?"radio":"checkbox";p.innerHTML="<input value='"+o.value+"' class='accordionFormItem' name='"+this.id+o.type+"' id='"+a+"' type='"+m+"' "+c+"/>";p.innerHTML+="<label for='"+a+"'><span class='accordionLabel'>"+o.label+"</span><span class='accordionSub'>"+o.sublabel+"</span></label>";f.appendChild(p)}}k.appendChild(f)}this.container.appendChild(k);var n=document.createElement("a");n.setAttribute("class","accordionToggler atcollapse");this.isCollapsed=false;var l=new Object();l.data=new Object();l.data.self=this;this.container.appendChild(n);$(".accordionToggler").bind("click",{self:this},SOTE.widget.AccordionPicker.toggle);$(".accordion").accordion();$(".accordion").bind("accordionchange",{self:this},SOTE.widget.AccordionPicker.handleCategorySwitch);$(".accordionFormItem").bind("click",{self:this},SOTE.widget.AccordionPicker.handleSelection);if(d!==undefined&&d!==""){this.setValue(j+"."+d)}if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true;REGISTRY.markComponentReady(this.id)}};SOTE.widget.AccordionPicker.handleSelection=function(b){var a=b.data.self;a.syncCheckboxes(b.target);a.value=SOTE.util.extractFromQuery(a.id,a.getValue());a.fire()};SOTE.widget.AccordionPicker.toggle=function(c,b){var a=c.data.self;if(a.isCollapsed){$(".accordionToggler").removeClass("atexpand").addClass("atcollapse");$(".accordionToggler").attr("title","Hide Products");$(".accordion").css("display","block");a.isCollapsed=false}else{$(".accordionToggler").removeClass("atcollapse").addClass("atexpand");$(".accordionToggler").attr("title","Show Products");$(".accordion").css("display","none");a.isCollapsed=true}};SOTE.widget.AccordionPicker.handleCategorySwitch=function(f,g){var k=f.data.self;var d=(g.oldHeader[0].id);var j=(g.newHeader[0].id);var l=null;var a=false;if(k.expanded!==j){k.expanded=j;var c=document.getElementsByName(k.id+"single");for(var b=0;b<c.length;++b){if(c[b].disabled===false&&c[b].id.indexOf(d)!=-1&&c[b].checked===true){l=c[b].value}}if(l!==null){for(var b=0;b<c.length;++b){if(c[b].disabled===false&&c[b].id.indexOf(j)!=-1&&c[b].value===l){c[b].checked=true;a=true}}}var h}$(".accordion").blur()};SOTE.widget.AccordionPicker.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from AccordionPicker!")}};SOTE.widget.AccordionPicker.prototype.setValue=function(l){var e=l.split(".");var k=e[0];var b=e[1];var g=document.getElementsByName(this.id+"single");var m=false;var a=k;var c=new RegExp(this.id+"(.+)");if(c.test(k)==false){a=this.id+k}if(this.expanded===null||this.expanded!==a){$(".accordion").accordion("activate","#"+a);this.expanded=a}for(var f=0;f<g.length;++f){if(g[f].value===b&&g[f].disabled===false&&g[f].id.indexOf(k)!=-1){g[f].checked=true;m=true;break}}if(!m){for(var f=0;f<g.length;++f){if(g[f].value===b&&g[f].disabled===false){g[f].checked=true}}}var h=document.getElementsByName(this.id+"multi");for(var f=0;f<h.length;++f){for(var d=1;d<e.length;++d){if(h[f].value===e[d]&&h[f].disabled===false){h[f].checked=true}}}this.value=l;this.fire();$(".accordion").blur();return this.validate()};SOTE.widget.AccordionPicker.prototype.syncCheckboxes=function(d){var b=d.checked;var c=document.getElementsByName(this.id+"multi");for(var a=0;a<c.length;++a){if(c[a].value===d.value&&c[a].disabled===false){c[a].checked=b}}return};SOTE.widget.AccordionPicker.prototype.getValue=function(){var f=new Array();var e=new Object();var d=document.getElementsByName(this.id+"single");for(var b=0;b<d.length;++b){if(d[b].checked===true){f.push(d[b].value);break}}if(f.length===0){f.push("")}var h=document.getElementsByName(this.id+"multi");for(var b=0;b<h.length;++b){if(h[b].checked===true){if(!(h[b].value in e)){f.push(h[b].value);e[h[b].value]=1}}}var c=new RegExp(this.id+"(.+)");var a=c.exec(this.expanded);var g=a[1]+"."+f.join(".");return this.id+"="+g};SOTE.widget.AccordionPicker.prototype.updateComponent=function(b){var a=(b===undefined)?"":b;SOTE.util.getJSON(this.dataSourceUrl+"?"+b,{self:this,qs:b},SOTE.widget.AccordionPicker.handleUpdateSuccess,SOTE.widget.AccordionPicker.handleUpdateFailure)};SOTE.widget.AccordionPicker.handleUpdateSuccess=function(d,a,e,c){var b=SOTE.util.extractFromQuery("hazard",c.qs);d.expanded=(b!==undefined&&b!==""&&b!==null)?b:d.expanded;d.selected=(d.selected===undefined||d.selected==="")?SOTE.util.extractFromQuery(c.self.id,c.self.getValue()):d.selected;c.self.items=d;c.self.render()};SOTE.widget.AccordionPicker.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.AccordionPicker.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.AccordionPicker.prototype.validate=function(){var d=true;var a=0;var c=document.getElementsByName(this.id+"single");for(var b=0;b<c.length;++b){if(c[b].checked===true){++a}if(c[b].disabled===true&&c[b].checked===true){this.setStatus("Disabled items cannot be selected!");d=false}}if(a>1){d=false;this.setStatus("Multiple single-select items selected!")}return d};SOTE.widget.AccordionPicker.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.AccordionPicker.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.AccordionPicker.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.AccordionPicker.prototype.getStatus=function(){return this.statusStr};
\ No newline at end of file
diff --git a/js/bank-min.js b/js/bank-min.js
new file mode 100644
index 000000000..77ad448cb
--- /dev/null
+++ b/js/bank-min.js
@@ -0,0 +1 @@
+SOTE.namespace("SOTE.widget.Bank");SOTE.widget.Bank.prototype=new SOTE.widget.Component;SOTE.widget.Bank=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}this.id=a;this.containerId=a;if(b===undefined){b={}}if(b.title===undefined){b.title="My Bank"}if(b.categories===undefined){b.categories=["Category 1","Category 2"]}if(b.callback===undefined){b.callback=null}if(b.state===undefined){b.state="geographic"}this.values=null;this.state=b.state;this.selected=b.selected;this.dataSourceUrl=b.dataSourceUrl;this.title=b.title;this.callback=b.callback;this.selector=b.selector;this.meta=new Object;this.buildMetaDone=false;this.categories=b.categories;this.initRenderComplete=false;this.dataSourceUrl=b.dataSourceUrl;this.statusStr="";this.init()};SOTE.widget.Bank.prototype.buildMeta=function(a,b){SOTE.util.getJSON("data/"+this.state+"_"+this.dataSourceUrl,{self:this,callback:a,val:b},SOTE.widget.Bank.handleMetaSuccess,SOTE.widget.Bank.handleUpdateFailure)};SOTE.widget.Bank.handleMetaSuccess=function(f,a,g,d){var b=d.self;for(var e in f){if(e!="palettes"){for(var c=0;c<f[e].length;c++){b.meta[f[e][c].value]={label:f[e][c].label,sublabel:f[e][c].sublabel}}}}for(var e in f.palettes){b.meta[e].units=f.palettes[e].units;b.meta[e].min=f.palettes[e].min;b.meta[e].max=f.palettes[e].max;b.meta[e].palette=f.palettes[e].palette}if(d.callback){d.callback({self:b,val:d.val})}else{b.values=null;b.values=b.unserialize(b.selected[b.state]);b.render();b.fire()}b.buildMetaDone=true};SOTE.widget.Bank.prototype.init=function(){this.buildMeta();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register Bank!")}};SOTE.widget.Bank.prototype.render=function(){this.container.innerHTML="";var b=document.createElement("div");b.setAttribute("class","bank");var h=document.createElement("div");var n=document.createElement("h2");n.innerHTML=this.title;var d=document.createElement("a");d.setAttribute("id","callSelectorLink");d.setAttribute("class","callSelectorLink");h.appendChild(n);h.appendChild(d);b.appendChild(h);$("#"+this.id).delegate(".callSelectorLink","click",{selector:this.selector},this.callback);for(var k=0;k<this.categories.length;k++){var f=this.categories[k].replace(/\s/g,"");var c=document.createElement("ul");c.setAttribute("id",f.toLowerCase());c.setAttribute("class",this.id+"category category");var q=document.createElement("li");var a=document.createElement("h3");a.setAttribute("class","head");a.innerHTML=this.categories[k];q.appendChild(a);c.appendChild(q);if(this.values!==null&&this.values[f.toLowerCase()]){for(var g=0;g<this.values[f.toLowerCase()].length;g++){var p=document.createElement("li");p.setAttribute("id",f.toLowerCase()+"-"+this.values[f.toLowerCase()][g].value);p.setAttribute("class",this.id+"item item");p.innerHTML="<a><img class='close' id='"+this.values[f.toLowerCase()][g].value.replace(/:/g,"colon")+"' src='images/close.png' /></a>";if(this.meta!==null&&this.meta[this.values[f.toLowerCase()][g].value]){p.innerHTML+="<h4>"+this.meta[this.values[f.toLowerCase()][g].value].label+"</h4>";p.innerHTML+="<p>"+this.meta[this.values[f.toLowerCase()][g].value].sublabel+"</p>";var e=this.meta[this.values[f.toLowerCase()][g].value];if(e.palette){var l="<span class='palette'><span class='p-min' style='margin-right:10px;'>"+e.min+"</span><canvas id='canvas"+this.values[f.toLowerCase()][g].value+"' width=100px height=14px'></canvas><span class='p-max' style='margin-left:10px;'>"+e.max+"</span>";if(e.units&&e.units!=""){l+="<span class='units' style='margin-left:3px;'>("+e.units+")</span></span>"}p.innerHTML+=l}}else{p.innerHTML+="<h4>"+this.values[f.toLowerCase()][g].value+"</h4>"}c.appendChild(p)}}b.appendChild(c)}this.container.appendChild(b);this.renderCanvases();var o=document.createElement("a");o.setAttribute("class","accordionToggler atcollapse");this.isCollapsed=false;this.container.appendChild(o);$(".accordionToggler").bind("click",{self:this},SOTE.widget.Bank.toggle);$("#"+this.id).delegate(".close","click",{self:this},SOTE.widget.Bank.removeValue);$("."+this.id+"category").sortable({items:"li:not(.head)"});$("."+this.id+"category li").disableSelection();$("."+this.id+"category").bind("sortstop",{self:this},SOTE.widget.Bank.handleSort);if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true;REGISTRY.markComponentReady(this.id)}};SOTE.widget.Bank.prototype.renderCanvases=function(){for(var l=0;l<this.categories.length;l++){var f=this.categories[l].replace(/\s/g,"");if(this.values!==null&&this.values[f.toLowerCase()]){for(var h=0;h<this.values[f.toLowerCase()].length;h++){var d=this.values[f.toLowerCase()][h].value;var e=this.meta[this.values[f.toLowerCase()][h].value];if(e.palette){var a=100/e.palette.length;var c=document.getElementById("canvas"+d);var b=c.getContext("2d");for(var g=0;g<e.palette.length;++g){b.fillStyle="rgba("+e.palette[g]+")";b.fillRect(a*g,0,a,14)}}}}}};SOTE.widget.Bank.toggle=function(c,b){var a=c.data.self;if(a.isCollapsed){$(".accordionToggler").removeClass("atexpand").addClass("atcollapse");$(".accordionToggler").attr("title","Hide Products");$(".bank").css("display","block");a.isCollapsed=false}else{$(".accordionToggler").removeClass("atcollapse").addClass("atexpand");$(".accordionToggler").attr("title","Show Products");$(".bank").css("display","none");a.isCollapsed=true}};SOTE.widget.Bank.handleSort=function(f,d){var a=f.data.self;a.values=new Object;for(var b=0;b<a.categories.length;b++){var c=a.categories[b].replace(/\s/g,"");c=c.toLowerCase();a.values[c]=new Array();jQuery('li[id|="'+c+'"]').each(function(){var e=jQuery(this);var i=e.attr("id");var g=i.split("-");var h=g.splice(0,1);h=g.join("-");a.values[c].push({value:h})})}a.fire()};SOTE.widget.Bank.removeValue=function(f){var a=f.data.self;var g=f.target.id.replace(/colon/g,":");for(var c=0;c<a.categories.length;c++){var d=a.categories[c].replace(/\s/g,"");d=d.toLowerCase();for(var b=0;b<a.values[d].length;b++){if(a.values[d][b].value==g){a.values[d].splice(b,1)}}}var h=g.replace(/:/g,"colon");$("#"+a.id+" #"+h).parent().parent().remove();a.fire()};SOTE.widget.Bank.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Bank!")}};SOTE.widget.Bank.prototype.setValue=function(a){this.values=this.unserialize(a);this.render();this.fire()};SOTE.widget.Bank.prototype.getValue=function(){var a=this.serialize(this.values);return this.id+"="+a};SOTE.widget.Bank.prototype.serialize=function(a){var e="";for(var c=0;c<this.categories.length;c++){if(c>0){e+="~"}var d=this.categories[c].replace(/\s/g,"");d=d.toLowerCase();e+=d;if(a[d]){for(var b=0;b<a[d].length;b++){e+="."+a[d][b].value}}}return e};SOTE.widget.Bank.prototype.unserialize=function(d){var f=new Object;var b=d.split("~");for(var e=0;e<b.length;e++){var a=b[e].split(".");f[a[0]]=new Array;for(var c=1;c<a.length;c++){f[a[0]].push({value:a[c]})}}return f};SOTE.widget.Bank.prototype.updateComponent=function(b){var a=(b===undefined)?"":b;SOTE.widget.Bank.handleUpdateSuccess(this,a)};SOTE.widget.Bank.handleUpdateSuccess=function(b,a){if(SOTE.util.extractFromQuery("switch",a)==b.state){var c=SOTE.util.extractFromQuery("selectorbox",a);b.values=b.unserialize(c);b.render();b.fire()}else{b.state=SOTE.util.extractFromQuery("switch",a);b.buildMeta()}};SOTE.widget.Bank.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.Bank.prototype.loadFromQuery=function(a){var b=SOTE.util.extractFromQuery("switch",a);if(this.state!=b){this.state=b;this.buildMeta(SOTE.widget.Bank.loadValue,SOTE.util.extractFromQuery(this.id,a))}else{this.sleep(SOTE.util.extractFromQuery(this.id,a))}};SOTE.widget.Bank.prototype.sleep=function(a){setTimeout(SOTE.widget.Bank.loadValue,100,{self:this,val:a})};SOTE.widget.Bank.loadValue=function(a){if(a.self.buildMetaDone==true){a.self.setValue(a.val)}else{a.self.sleep(a.val)}};SOTE.widget.Bank.prototype.validate=function(){var a=true;return a};SOTE.widget.Bank.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.Bank.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.Bank.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Bank.prototype.getStatus=function(){return this.statusStr};
\ No newline at end of file
diff --git a/js/component-min.js b/js/component-min.js
new file mode 100644
index 000000000..062e4295e
--- /dev/null
+++ b/js/component-min.js
@@ -0,0 +1 @@
+if(typeof SOTE=="undefined"){var SOTE=new Object()}SOTE.namespace=function(){var d;for(var b=0;b<arguments.length;b++){var c=(""+arguments[b]).split(".");d=SOTE;for(var a=(c[0]=="SOTE")?1:0;a<c.length;a++){d[c[a]]=d[c[a]]||{};d=d[c[a]]}}return d};SOTE.namespace("widget");SOTE.widget.Component=function(a,b){};SOTE.widget.Component.prototype.init=function(){};SOTE.widget.Component.prototype.setValue=function(a){};SOTE.widget.Component.prototype.getValue=function(){};SOTE.widget.Component.prototype.updateComponent=function(a){};SOTE.widget.Component.prototype.loadFromQuery=function(a){};SOTE.widget.Component.prototype.validate=function(){};SOTE.widget.Component.prototype.setDataSourceUrl=function(a){};SOTE.widget.Component.prototype.getDataSourceUrl=function(){};SOTE.widget.Component.prototype.setStatus=function(a){};SOTE.widget.Component.prototype.getStatus=function(){};
\ No newline at end of file
diff --git a/js/dateSpan-min.js b/js/dateSpan-min.js
new file mode 100644
index 000000000..232d356f8
--- /dev/null
+++ b/js/dateSpan-min.js
@@ -0,0 +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
diff --git a/js/map-min.js b/js/map-min.js
new file mode 100644
index 000000000..9ec3be274
--- /dev/null
+++ b/js/map-min.js
@@ -0,0 +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
diff --git a/js/mapSote-min.js b/js/mapSote-min.js
new file mode 100644
index 000000000..882f68c58
--- /dev/null
+++ b/js/mapSote-min.js
@@ -0,0 +1 @@
+SOTE.namespace("SOTE.widget.MapSote");SOTE.widget.MapSote=function(a,b){SOTE.widget.Map.call(this,a,b);this.isLayerCachingEnabled=false;this.terribleQsSaver="";this.terribleQsSaverJustSet=false;this.state="geographic";this.setExtent(this.bbox);this.initMapSote()};SOTE.widget.MapSote.prototype=new SOTE.widget.Map;SOTE.widget.MapSote.prototype.initMapSote=function(){this.isLayerCachingEnabled=false;this.terribleQsSaver="";this.terribleQsSaverJustSet=false;this.map.events.register("movestart",this,this.handleMapMoveStart);this.map.events.register("zoomend",this,this.handleMapZoomEnd);this.handleMapZoomEnd(null)};SOTE.widget.MapSote.prototype.setLayerCaching=function(a){this.isLayerCachingEnabled=a};SOTE.widget.MapSote.prototype.handleMapMoveStart=function(a){this.setLayerCaching(false);if(this.terribleQsSaver!=""){this.terribleQsSaverJustSet=true;this.updateComponent(this.terribleQsSaver)}};SOTE.widget.MapSote.prototype.handleMapZoomEnd=function(a){if(this.map.zoom==this.map.numZoomLevels-1){$(".olControlZoomInCustomItemInactive").css("background-color","rgba(38,38,38,0.3)");$(".olControlZoomInCustomItemInactive").css("color","#555555")}else{$(".olControlZoomInCustomItemInactive").css("background-color","rgba(68,68,68,0.85)");$(".olControlZoomInCustomItemInactive").css("color","#FFFFFF")}if(this.map.zoom==0){$(".olControlZoomOutCustomItemInactive").css("background-color","rgba(38,38,38,0.3)");$(".olControlZoomOutCustomItemInactive").css("color","#555555")}else{$(".olControlZoomOutCustomItemInactive").css("background-color","rgba(68,68,68,0.85)");$(".olControlZoomOutCustomItemInactive").css("color","#FFFFFF")}};SOTE.widget.MapSote.prototype.updateComponent=function(k){var h=(SOTE.util.extractFromQuery("switch",k))?SOTE.util.extractFromQuery("switch",k):"geographic";if(!this.isSoteMapDataCached||h!=this.state){this.state=h;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 g=[{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=g.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 g=[{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=g.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 g=[{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=g.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.initMapSote();this.addLayers(this.soteMapData);this.isSoteMapDataCached=true}var b=(k===undefined)?"":k;if(b==""){return}if(!this.terribleQsSaverJustSet){this.setLayerCaching(true)}else{this.terribleQsSaverJustSet=false}var p=SOTE.util.extractFromQuery("products",b);var w=SOTE.util.extractFromQuery("transition",b);var A=SOTE.util.extractFromQuery("time",b);var B=new Array();if(p!=""){var E=p.split("~");var l=E[0].split(".");var G=E[1].split(".");for(var z=1;z<l.length;++z){B.push(l[z])}for(var z=1;z<G.length;++z){B.push(G[z])}}if((B==null)||(B.length<1)){return}var d=null;if(A!=""){d=A.split(/T/)}if((d==null)||(d.length!=2)){alert("Invalid or no time provided in querystring to soteMap class; needs to be of the format YYYY-MM-DDTHH:MM:SS");return}var e=d[0];var f=d[1];var r=e.split("-")[0];var D=e.split("-")[1];var y=e.split("-")[2];var m=f.split(":")[0];var t=f.split(":")[1];var C=f.split(":")[2];var q=new String(e);var u=Date.parse(q).add(1).days();var o=new String(u.getFullYear()+"-"+SOTE.util.zeroPad(u.getMonth()+1,2)+"-"+SOTE.util.zeroPad(u.getDate(),2));var s=m/24+t/1440+C/86400;this.terribleQsSaver=b;if(w=="standard"){var c=null;c=new String(q);var n=this.getAllLayers();var v=n.length;for(var z=0;z<v;z++){var F=false;for(var x=0;x<B.length;x++){if((n[z].name==new String(B[x]+"__"+c))||(n[z].name==new String(B[x]))){n[z].setVisibility(true);if(x==0){this.map.setLayerZIndex(n[z],0);n[z].setOpacity(1)}else{if(this.checkWmsParam(n[z].metadata.bringToFront)&&n[z].metadata.bringToFront){this.map.setLayerZIndex(n[z],v-1)}if(this.checkWmsParam(n[z].metadata.preferredOpacity)){n[z].setOpacity(n[z].metadata.preferredOpacity)}else{n[z].setOpacity(this.DEFAULT_OVERLAY_OPACITY)}if(B.length>2){this.map.setLayerZIndex(n[z],v-x)}}F=true}}if(!F){if(!this.isLayerCachingEnabled){n[z].setVisibility(false)}n[z].setOpacity(0)}}}else{if(w=="crossfade"){alert("crossfade transition not yet supported");return}}};
\ No newline at end of file
diff --git a/js/menuPicker-min.js b/js/menuPicker-min.js
new file mode 100644
index 000000000..6f77ed52c
--- /dev/null
+++ b/js/menuPicker-min.js
@@ -0,0 +1 @@
+SOTE.namespace("SOTE.widget.MenuPicker");SOTE.widget.MenuPicker.prototype=new SOTE.widget.Component;SOTE.widget.MenuPicker=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!");return}this.id=a;if(b===undefined){b={}}if(b.isCollapsible===undefined){b.isCollapsible=false}if(b.dataSourceUrl===undefined){b.dataSourceUrl=null}this.selectedValue=null;this.menuIsCollapsible=b.isCollapsible;this.dataSourceUrl=b.dataSourceUrl;this.initRenderComplete=false;this.statusStr="";this.init()};SOTE.widget.MenuPicker.prototype.init=function(){this.updateComponent();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY so could not register MenuPicker")}};SOTE.widget.MenuPicker.prototype.render=function(){this.container.innerHTML="";$("#"+this.id).undelegate("click");var a=document.createElement("ul");var d="menuPicker";if(this.menuIsCollapsible===true){d+=" collapsible"}a.setAttribute("class",d);for(var c=0;c<this.menuItems.length;c++){var b=this.id+"_item"+c;this.menuItems[c].liID=b;var e=document.createElement("li");e.setAttribute("id",b);e.innerHTML="<div>"+this.menuItems[c].label+"</div>";if((this.selectedValue!==null)&&(this.menuItems[c].value===this.selectedValue)){this.setValue(this.menuItems[c].value);e.setAttribute("class","selected")}a.appendChild(e);if(this.menuItems[c].disabled!==true){$("#"+this.id).delegate("#"+b,"click",{val:this.menuItems[c].value,self:this},SOTE.widget.MenuPicker.bindClick)}else{e.setAttribute("class","disabled")}}if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true;REGISTRY.markComponentReady(this.id)}this.container.appendChild(a)};SOTE.widget.MenuPicker.bindClick=function(a){a.data.self.setValue(a.data.val)};SOTE.widget.MenuPicker.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY so no event REGISTRY event to fire")}};SOTE.widget.MenuPicker.prototype.setValue=function(d){var c=this.selectedValue;var b=this.selectedId;this.selectedValue=d;var a=this.validate();if(a){$("#"+b).removeClass("selected");$("#"+this.selectedId).addClass("selected")}else{this.selectedValue=c}this.fire();return a};SOTE.widget.MenuPicker.prototype.getValue=function(){return this.id+"="+this.selectedValue};SOTE.widget.MenuPicker.prototype.updateComponent=function(b){var a=(b===undefined)?"":b;if(this.dataSourceUrl!==null){SOTE.util.getJSON(this.dataSourceUrl+"?"+a,{self:this},SOTE.widget.MenuPicker.handleUpdateSuccess,SOTE.widget.MenuPicker.handleUpdateFailure)}};SOTE.widget.MenuPicker.handleUpdateSuccess=function(d,a,e,b){var c=SOTE.util.extractFromQuery(b.self.id,b.self.getValue());b.self.menuItems=d.items;b.self.selectedValue=d.selected;if(!b.self.setValue(c)){b.self.value=null}b.self.render()};SOTE.widget.MenuPicker.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.MenuPicker.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.MenuPicker.prototype.validate=function(){var c=false;var a=false;for(var b=0;b<this.menuItems.length;b++){if((this.menuItems[b].value===this.selectedValue)&&(this.menuItems[b].disabled!==true)){c=true;a=true;this.selectedId=this.menuItems[b].liID;break}else{if(this.menuItems[b].value===this.selectedValue){this.setStatus("List item with value = "+this.menuItems[b].value+" is disabled");a=true;break}}}if(a==false){this.setStatus("List item value = "+this.selectedValue+" is not valid")}return c};SOTE.widget.MenuPicker.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.MenuPicker.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.MenuPicker.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.MenuPicker.prototype.getStatus=function(){return this.statusStr};SOTE.widget.MenuPicker.prototype.addItem=function(a){};SOTE.widget.MenuPicker.prototype.removeItem=function(a){};SOTE.widget.MenuPicker.prototype.length=function(){};
\ No newline at end of file
diff --git a/js/registry-min.js b/js/registry-min.js
new file mode 100644
index 000000000..69eceb417
--- /dev/null
+++ b/js/registry-min.js
@@ -0,0 +1 @@
+SOTE.namespace("util");SOTE.util.Registry=function(){this.compRegistry=new Array();this.evtRegistry=new Array();this.consumers=new Array();this.readyRegistry=new Array();this.allReadyCallbacks=new Array();this.register=function a(x,v){var w=new h(x,v);this.storeComponent(x,w)};function h(w,v){this.name=w;this.obj=v;return this}function c(w,v){this.consumerId=w;this.producerId=v;return this}this.addEventListener=function i(z,w){if(w!=null||w!="undefined"||w!=""){for(var x=1;x<arguments.length;x++){var v=new t(z,arguments[x]);var y=new n(arguments[x],v);this.storeEvent(z,v);this.consumers.push(new c(arguments[x],z))}}};this.storeEvent=function g(w,v){this.evtRegistry.push(v)};this.getEvents=function u(x){var w=new Array();for(var v=0;v<this.evtRegistry.length;v++){if(x==this.evtRegistry[v].name){w.push(this.evtRegistry[v])}}return w};this.fire=function o(w,v){if(v==null){v="norecurse=xxx"}if(w!=null){var B=this.getEvents(this.getComponentId(w));if(B.length>0){var A=new Array();for(var z=0;z<B.length;z++){A=this.getConsumers(B[z].consumerId);var y="";for(var x=0;x<A.length;x++){if(A[x]==this.getComponentId(w)){y=A[x];break}}if(B[z].consumerId!=v.split("=")[1]){B[z].componentUpdate.fire(w.getValue())}}}}else{alert("Registry: fire: comp is null")}};this.syncComponents=function(){var y=this.getComponents();var v=new Array();var w;for(var x=0;x<y.length;x++){w=this.getProducers(y[x].id);if(w.length>0){v=v.concat(w)}}for(var x=0;x<v.length;x++){this.fire(this.getComponent(v[x]))}};this.getDependentValues=function(v,x){var y="";for(var w=0;w<this.consumers.length;w++){if(this.consumers[w].consumerId==v&&this.consumers[w].producerId!=x){y+=this.getComponent(this.consumers[w].producerId).getValue()+"&"}}y=y.substring(0,y.length-1);return y};function t(w,v){this.name=w;this.consumerId=v;this.componentUpdate=new YAHOO.util.CustomEvent("componentUpdate",this);return this}function n(w,v){this.name=w;this.evtObj=v;this.evtObj.componentUpdate.subscribe(this.onComponentUpdate,this);return this}n.prototype.onComponentUpdate=function(y,w,z){var x=getRegistryDependentValues(z.name,this.name);if(x!=""){w=w+"&"+x}var v=getGComponent(z.name);if(v!=null){v.updateComponent(w)}};this.addConsumer=function d(w){var x;for(var v=0;v<this.consumers.length;v++){x=this.consumers[v];if(w.id==x.id){this.consumers.splice(v,1);break}}this.consumers.push(w)};this.getConsumer=function l(x){var w;for(var v=0;v<this.consumers.length;v++){w=this.consumers[v];if(x==w.id){break}}return w};this.storeComponent=function b(w,v){var y;for(var x=0;x<this.compRegistry.length;x++){y=this.compRegistry[x];if(w==y.name){this.compRegistry.splice(x,1);break}}this.compRegistry.push(v)};this.getComponent=function j(x){var w;for(var v=0;v<this.compRegistry.length;v++){w=this.compRegistry[v];if(x==w.name){break}}return w.obj};this.getComponentId=function m(w){var x;for(var v=0;v<this.compRegistry.length;v++){x=this.compRegistry[v];if(w==x.obj){break}}return x.name};this.getComponents=function k(){var v=new Array();for(var w=0;w<this.compRegistry.length;w++){v.push(this.compRegistry[w])}return v};this.checkComponentsReady=function q(){var y=true;var A=this.getComponents();for(var w=0;w<A.length;w++){if(A[w].obj.loadFromQuery==undefined){continue}var x=false;for(var v=0;v<this.readyRegistry.length;v++){if(this.readyRegistry[v]==A[w].name){x=true}}if(!x){y=false;break}}if(y){for(var w=0;w<this.allReadyCallbacks.length;w++){var z=this.allReadyCallbacks[w];z()}}};this.addAllReadyCallback=function p(v){this.allReadyCallbacks.push(v);this.checkComponentsReady()};this.markComponentReady=function s(v){this.readyRegistry.push(v);this.checkComponentsReady()};this.getUIComponents=function f(){var w=this.getComponents();var v=new Array();for(var x=0;x<w.length;x++){if(w[x].obj.loadFromQuery){v.push(w[x].obj)}}return v};this.getProducers=function e(w){var v=new Array();for(var x=0;x<this.consumers.length;x++){if(this.consumers[x].consumerId==w){v.push(this.consumers[x].producerId)}}return v};this.getConsumers=function r(x){var w=new Array();for(var v=0;v<this.consumers.length;v++){if(this.consumers[v].producerId==x){w.push(this.consumers[v].consumerId)}}return w}};var REGISTRY=new SOTE.util.Registry();function getGComponent(a){return REGISTRY.getComponent(a)}function getRegistryDependentValues(b,a){return REGISTRY.getDependentValues(b,a)};
\ No newline at end of file
diff --git a/js/selector-min.js b/js/selector-min.js
new file mode 100644
index 000000000..f79a847a7
--- /dev/null
+++ b/js/selector-min.js
@@ -0,0 +1 @@
+SOTE.namespace("SOTE.widget.Selector");SOTE.widget.Selector.prototype=new SOTE.widget.Component;SOTE.widget.Selector=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}this.id=a;this.containerId=a;if(b===undefined){b={}}if(b.categories===undefined){b.categories=["Category 1","Category 2"]}if(b.state===undefined){b.state="geographic"}this.values=new Object;this.state=b.state;this.meta=new Object;this.categories=b.categories;this.initRenderComplete=false;this.dataSourceUrl=b.dataSourceUrl;this.statusStr="";this.init()};SOTE.widget.Selector.prototype.init=function(){this.loadData();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register Selector!")}};SOTE.widget.Selector.prototype.loadData=function(){SOTE.util.getJSON("data/"+this.state+"_"+this.dataSourceUrl,{self:this},SOTE.widget.Selector.handleLoadSuccess,SOTE.widget.Selector.handleUpdateFailure)};SOTE.widget.Selector.handleLoadSuccess=function(d,a,e,c){var b=c.self;b.data=d;b.render()};SOTE.widget.Selector.prototype.render=function(){this.container.innerHTML="";$("#"+this.id).addClass("selector");var d=document.createElement("ul");d.setAttribute("class","toplevel");var a=document.createElement("div");var h=document.createElement("h2");h.innerHTML="Choose Your Interest Area";a.appendChild(h);this.container.appendChild(a);var f=0;for(var c in this.data){f++;if(c!=="All"&&c!=="palettes"){var b=document.createElement("li");var g=c.replace(/\s/g,"");itemLink=document.createElement("a");itemLink.setAttribute("id",g);itemLink.innerHTML="<img src='images/"+g.toLowerCase()+".png' /><p>"+c+"</p>";b.appendChild(itemLink);d.appendChild(b);$("#"+this.id).delegate("#"+g,"click",{self:this,category:c},SOTE.widget.Selector.loadCategory)}}if(f<=2){SOTE.widget.Selector.loadCategory({data:{self:this,category:"All"},back:true});return}this.container.appendChild(d);var e=document.createElement("a");e.setAttribute("id","subfront");e.setAttribute("class","flowbutton");e.setAttribute("href","javascript:void(0);");e.innerHTML="<b>skip this step</b> to see all available layers >>";this.container.appendChild(e);$("#"+this.id).delegate("#subfront","click",{self:this,category:"All"},SOTE.widget.Selector.loadCategory);if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true;REGISTRY.markComponentReady(this.id)}};SOTE.widget.Selector.callRender=function(a){a.data.self.openCat=null;a.data.self.render()};SOTE.widget.Selector.prototype.reloadCategory=function(){var a=new Object;a.data=new Object;a.data.self=this;a.data.category=this.openCat;SOTE.widget.Selector.loadCategory(a)};SOTE.widget.Selector.loadCategory=function(q){var l=q.data.self;var g=q.data.category;l.openCat=g;var o=(q.back)?false:true;var n=new Object;l.container.innerHTML="";var t=document.createElement("div");var u=document.createElement("h2");u.innerHTML="Choose Your Layers: "+g;t.appendChild(u);l.container.appendChild(t);var d=document.createElement("form");for(var p=0;p<l.categories.length;p++){var r=l.categories[p].replace(/\s/g,"");n[r.toLowerCase()]=document.createElement("ul");n[r.toLowerCase()].setAttribute("id",l.id+r.toLowerCase());n[r.toLowerCase()].setAttribute("class","category");var m=document.createElement("li");var k=document.createElement("h3");k.setAttribute("class","head");k.innerHTML=l.categories[p];m.appendChild(k);n[r.toLowerCase()].appendChild(m)}for(var p=0;p<l.data[g].length;p++){var s=l.data[g][p];var j=document.createElement("li");j.setAttribute("class","selectorItem item");var b=document.createElement("h4");var c=s.value.replace(/:/g,"colon");b.innerHTML=s.label;var h=document.createElement("p");h.innerHTML=s.sublabel;var a=document.createElement("input");if(s.type==="single"){a.setAttribute("type","radio");a.setAttribute("name",g)}else{a.setAttribute("type","checkbox")}a.setAttribute("id",c);a.setAttribute("value",s.value);j.appendChild(a);j.appendChild(b);j.appendChild(h);n[s.category].appendChild(j);$("#"+l.id).delegate("#"+c,"click",{self:l},SOTE.widget.Selector.toggleValue)}for(var p=0;p<l.categories.length;p++){var r=l.categories[p].replace(/\s/g,"").toLowerCase();d.appendChild(n[r])}l.container.appendChild(d);if(o){var f=document.createElement("a");f.setAttribute("id","subback");f.setAttribute("class","flowbutton");f.setAttribute("href","javascript:void(0);");f.innerHTML="<< <b>go back</b> and reselect my interest area";l.container.appendChild(f);$("#"+l.id).delegate("#subback","click",{self:l},SOTE.widget.Selector.callRender)}l.adjustSelected()};SOTE.widget.Selector.prototype.renderCanvases=function(a){for(var e=0;e<this.data[a].length;e++){var g=this.data[a][e];if(this.data.palettes[g.value]){var h=this.data.palettes[g.value];var f=100/h.palette.length;var c=document.getElementById("canvas"+this.id+g.value);var d=c.getContext("2d");for(var b=0;b<h.palette.length;++b){d.fillStyle="rgba("+h.palette[b]+")";d.fillRect(f*b,0,f,14)}}}};SOTE.widget.Selector.prototype.adjustSelected=function(){var a=document.getElementsByTagName("input");for(var d=0;d<a.length;d++){a[d].checked=""}for(var c=0;c<this.categories.length;c++){var e=this.categories[c].replace(/\s/g,"");e=e.toLowerCase();if(this.values[e]){for(var b=0;b<this.values[e].length;b++){var f=this.values[e][b].value.replace(/:/g,"colon");if(document.getElementById(f)){document.getElementById(f).checked="checked"}}}}};SOTE.widget.Selector.toggleValue=function(f){var a=f.data.self;var g=f.target;var c=$("#"+g.id).parent().parent().attr("id");c=c.replace(a.id,"");var d=$("#"+g.id).attr("value");d=d.replace(/colon/,":");var b=$("#"+g.id).attr("checked");if($("#"+g.id).attr("type")=="radio"){a.values[c]=new Array();a.values[c].push({value:d})}else{if(!a.values[c]){a.values[c]=new Array()}if(b!==undefined&&b=="checked"){a.removeItem(c,d);a.values[c].push({value:d})}else{a.removeItem(c,d)}}a.fire()};SOTE.widget.Selector.prototype.removeItem=function(a,c){for(var b=0;b<this.values[a].length;b++){if(this.values[a][b].value==c){this.values[a].splice(b,1)}}};SOTE.widget.Selector.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Selector!")}};SOTE.widget.Selector.prototype.setValue=function(a){this.values=this.unserialize(a);return this.validate()};SOTE.widget.Selector.prototype.getValue=function(){var a=this.serialize(this.values);return this.id+"="+a};SOTE.widget.Selector.prototype.serialize=function(a){var e="";for(var c=0;c<this.categories.length;c++){if(c>0){e+="~"}var d=this.categories[c].replace(/\s/g,"");d=d.toLowerCase();e+=d;if(a[d]){for(var b=0;b<a[d].length;b++){e+="."+a[d][b].value}}}return e};SOTE.widget.Selector.prototype.unserialize=function(d){var f=new Object;var b=d.split("~");for(var e=0;e<b.length;e++){var a=b[e].split(".");f[a[0]]=new Array;for(var c=1;c<a.length;c++){f[a[0]].push({value:a[c]})}}return f};SOTE.widget.Selector.prototype.updateComponent=function(b){var a=(b===undefined)?"":b;SOTE.widget.Selector.handleUpdateSuccess(this,a)};SOTE.widget.Selector.handleUpdateSuccess=function(b,a){if(SOTE.util.extractFromQuery("switch",a)==b.state){var c=SOTE.util.extractFromQuery("products",a);b.values=b.unserialize(c);if(b.openCat!==undefined&&b.openCat!==null){b.adjustSelected()}}else{b.state=SOTE.util.extractFromQuery("switch",a);b.loadData()}};SOTE.widget.Selector.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.Selector.prototype.loadFromQuery=function(a){};SOTE.widget.Selector.prototype.validate=function(){var a=true;return a};SOTE.widget.Selector.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.Selector.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.Selector.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Selector.prototype.getStatus=function(){return this.statusStr};
\ No newline at end of file
diff --git a/js/sote-min.js b/js/sote-min.js
new file mode 100644
index 000000000..93d24e8c1
--- /dev/null
+++ b/js/sote-min.js
@@ -0,0 +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
diff --git a/js/superview-min.js b/js/superview-min.js
new file mode 100644
index 000000000..fa74ba212
--- /dev/null
+++ b/js/superview-min.js
@@ -0,0 +1 @@
+SOTE.widget.Superview.prototype=new SOTE.widget.Component;SOTE.widget.Superview=function(a,b){};SOTE.widget.Superview.prototype.init=function(){};SOTE.widget.Superview.prototype.setValue=function(a){};SOTE.widget.Superview.prototype.getValue=function(){};SOTE.widget.Superview.prototype.updateComponent=function(a){};SOTE.widget.Superview.prototype.loadFromQuery=function(a){};SOTE.widget.Superview.prototype.validate=function(){};SOTE.widget.Superview.prototype.setDataSourceUrl=function(a){};SOTE.widget.Superview.prototype.getDataSourceUrl=function(){};SOTE.widget.Superview.prototype.setStatus=function(a){};SOTE.widget.Superview.prototype.getStatus=function(){};SOTE.widget.Superview.prototype.show=function(a){};SOTE.widget.Superview.prototype.hide=function(a){};
\ No newline at end of file
diff --git a/js/switch-min.js b/js/switch-min.js
new file mode 100644
index 000000000..3487b4d80
--- /dev/null
+++ b/js/switch-min.js
@@ -0,0 +1 @@
+SOTE.namespace("SOTE.widget.Switch");SOTE.widget.Switch.prototype=new SOTE.widget.Component;SOTE.widget.Switch=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}this.id=a;this.containerId=a;if(b===undefined){b={}}this.value=b.selected;this.data=(b.values!==undefined)?b.values:null;this.initRenderComplete=false;this.dataSourceUrl=b.dataSourceUrl;this.statusStr="";this.init()};SOTE.widget.Switch.prototype.init=function(){this.render();if(REGISTRY){REGISTRY.register(this.id,this);REGISTRY.markComponentReady(this.id)}else{alert("No REGISTRY found! Cannot register Switch!")}};SOTE.widget.Switch.prototype.render=function(){this.container.innerHTML="";$("#"+this.id).addClass("switch");this.container.innerHTML="<ul><li><div><img id='"+this.id+"current' src='images/geographic.png' /></div><div class='hidden'><a id='arctic'><img id='"+this.id+"arctic' src='images/arctic.png' /></a><a id='geographic'><img id='"+this.id+"geographic' src='images/geographic.png' /></a><a id='antarctic'><img id='"+this.id+"antarctic' src='images/antarctic.png' /></a></div></li></ul>";$("#arctic").bind("click",{self:this,val:"arctic"},SOTE.widget.Switch.setVal);$("#geographic").bind("click",{self:this,val:"geographic"},SOTE.widget.Switch.setVal);$("#antarctic").bind("click",{self:this,val:"antarctic"},SOTE.widget.Switch.setVal);if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true}};SOTE.widget.Switch.setVal=function(c){var a=c.data.self;var b=c.data.val;a.value=b;$("#"+a.id+"current").attr("src","images/"+a.value+".png");a.fire()};SOTE.widget.Switch.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Switch!")}};SOTE.widget.Switch.prototype.setValue=function(a){this.value=a;$("#"+this.id+"current").attr("src","images/"+this.value+".png");this.validate();this.fire()};SOTE.widget.Switch.prototype.getValue=function(){var a=this.id+"="+this.value;return a};SOTE.widget.Switch.prototype.updateComponent=function(a){};SOTE.widget.Switch.handleUpdateSuccess=function(b,a){};SOTE.widget.Switch.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.Switch.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.Switch.prototype.validate=function(){var a=true;return a};SOTE.widget.Switch.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.Switch.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.Switch.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Switch.prototype.getStatus=function(){return this.statusStr};
\ No newline at end of file
diff --git a/js/util-min.js b/js/util-min.js
new file mode 100644
index 000000000..921016d26
--- /dev/null
+++ b/js/util-min.js
@@ -0,0 +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