Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

June Release: * Product Picker Redesign * Polar Integration * Bug Fixes * UI Color Changes

Tilak Joshie5ba62a0d626
diff --git a/css/bank.css b/css/bank.css
new file mode 100644
index 000000000..cf0e30167
--- /dev/null
+++ b/css/bank.css
@@ -0,0 +1,16 @@
+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:0px; padding:0px;}
+.bank h2 {display:inline-block; float: left; color:#ffffff; font-size: 18px; font-weight:100; border:none; padding:6px 0;}
+.bank h3 {display:inline-block; float: left; color:#333333; font-size: 14px; font-weight:100; border:none; 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 ul h3 {}
+.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 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;}
diff --git a/css/map.css b/css/map.css
index 572fa3702..be3fc7601 100644
--- a/css/map.css
+++ b/css/map.css
@@ -73,13 +73,13 @@ div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive {
position: absolute;
}
div.olControlZoomPanelCustom .olControlZoomInCustomItemInactive {
- background-color:rgba(0,0,0,0.83);
+ background: rgba(68,68,68,.85);
top: 0;
background-position: 0 0;
border-radius: 5px 5px 0 0;
}
div.olControlZoomPanelCustom .olControlZoomOutCustomItemInactive {
- background-color:rgba(0,0,0,0.83);
+ background: rgba(68,68,68,.85);
top: 72px;
background-position: 0 -72px;
border-radius: 0 0 5px 5px ;
diff --git a/css/selector.css b/css/selector.css
new file mode 100644
index 000000000..9e7b16704
--- /dev/null
+++ b/css/selector.css
@@ -0,0 +1,20 @@
+.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:0px; padding:0px;}
+.selector h2 {display:inline-block; float: left; color:#ffffff; font-size: 18px; font-weight:100; border:none; padding:6px 0;}
+.selector h3 {display:inline-block; float: left; color:#333333; font-size: 14px; font-weight:100; border:none; 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;}
+.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:#333333 !important; margin-left:5px;}
+.selector a.flowbutton {text-decoration:none; display:inline-block; float: left; color:#ffffff !important; font-size: 14px; font-weight:100; border:none; padding:6px 0; margin-top:20px; margin-left:5px;}
+.selector ul li div {padding:0 !important;}
+.selector ul.toplevel {padding:0px;}
+.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:#ffffff; 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;}
diff --git a/css/sote.css b/css/sote.css
index a09aa9349..c2275ad73 100644
--- a/css/sote.css
+++ b/css/sote.css
@@ -8,10 +8,17 @@ div {display:block;}
.yui-skin-sam .yui-panel-container .bd h4{ color:#000000; 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:0px; 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;}
+/*#switch ul li div.hidden a:hover img {border:#155678 2px solid; }*/
+
#permpanel h3 {color:#FFFFFF; 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(0,0,0,0.8); position:absolute; overflow:hidden; bottom:0; z-index:1002; }
+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:none;}
#aboutus,#permalink a{text-decoration:none; border:none;}
diff --git a/data/antarctic_ap_products.php b/data/antarctic_ap_products.php
new file mode 100644
index 000000000..acfd260cc
--- /dev/null
+++ b/data/antarctic_ap_products.php
@@ -0,0 +1,96 @@
+<?php
+ $json = array(
+
+ "All"=> array(
+ array(
+ "label"=> "Corrected Reflectance (True Color)",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label"=> "Corrected Reflectance (True Color)",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label"=> "Corrected Reflectance (3-6-7)",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_CorrectedReflectance_Bands367",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label"=> "Brightness Temperature (Band 31-Day)",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_Brightness_Temp_Band31_Day",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label"=> "Brightness Temperature (Band 31-Night)",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_Brightness_Temp_Band31_Night",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label"=> "Brightness Temperature (Band 31-Day)",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_Brightness_Temp_Band31_Day",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label"=> "Brightness Temperature (Band 31-Night)",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_Brightness_Temp_Band31_Night",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label"=> "Empty",
+ "sublabel"=> "",
+ "value"=> "NON_EXISTENT_LAYER",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label"=> "Sea Ice Extent",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_Sea_Ice",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Sea Ice Extent",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_Sea_Ice",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Snow Cover",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Snow Cover",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Coastlines",
+ "sublabel"=> "Polarview / Coastlines",
+ "value"=> "polarview:coastS10",
+ "type" => "multi", "category" => "overlays"
+
+ ),
+ array(
+ "label"=> "Latitude-Longitude Lines",
+ "sublabel"=> "Polarview / Graticule",
+ "value"=> "polarview:graticule3031_10x30",
+ "type" => "multi", "category" => "overlays"
+
+ )
+
+ )
+ );
+
+ echo json_encode($json);
+?>
\ No newline at end of file
diff --git a/data/arctic_ap_products.php b/data/arctic_ap_products.php
new file mode 100644
index 000000000..977e02f79
--- /dev/null
+++ b/data/arctic_ap_products.php
@@ -0,0 +1,116 @@
+<?php
+ $json = array(
+ "All"=> array(
+ array(
+ "label"=> "Corrected Reflectance (True Color)",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+
+ ),
+ array(
+ "label"=> "Corrected Reflectance (True Color)",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+
+ ),
+ array(
+ "label"=> "Corrected Reflectance (3-6-7)",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_CorrectedReflectance_Bands367",
+ "type" => "single", "category" => "baselayers"
+
+ ),
+ array(
+ "label"=> "Brightness Temperature (Band 31-Day)",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_Brightness_Temp_Band31_Day",
+ "type" => "single", "category" => "baselayers"
+
+ ),
+ array(
+ "label"=> "Brightness Temperature (Band 31-Night)",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_Brightness_Temp_Band31_Night",
+ "type" => "single", "category" => "baselayers"
+
+ ),
+ array(
+ "label"=> "Brightness Temperature (Band 31-Day)",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_Brightness_Temp_Band31_Day",
+ "type" => "single", "category" => "baselayers"
+
+ ),
+ array(
+ "label"=> "Brightness Temperature (Band 31-Night)",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_Brightness_Temp_Band31_Night",
+ "type" => "single", "category" => "baselayers"
+
+ ),
+ array(
+ "label"=> "Empty",
+ "sublabel"=> "",
+ "value"=> "NON_EXISTENT_LAYER",
+ "type" => "single", "category" => "baselayers"
+
+ ),
+ array(
+ "label"=> "Sea Ice Extent",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_Sea_Ice",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Sea Ice Extent",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_Sea_Ice",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Snow Cover",
+ "sublabel"=> "Terra / MODIS",
+ "value"=> "MODIS_Terra_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Snow Cover",
+ "sublabel"=> "Aqua / MODIS",
+ "value"=> "MODIS_Aqua_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Population Density",
+ "sublabel"=> "SEDAC GRUMP v1 Population Count 2000",
+ "value"=> "grump-v1-population-count_2000",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label"=> "Coastlines",
+ "sublabel"=> "Polarview / Coastlines",
+ "value"=> "polarview:coastArctic10",
+ "type" => "multi", "category" => "overlays"
+
+ ),
+ array(
+ "label"=> "Global Labels",
+ "sublabel"=> "SEDAC / Global Labels",
+ "value"=> "cartographic:00-global-labels",
+ "type" => "multi", "category" => "overlays"
+
+ ),
+ array(
+ "label"=> "Latitude-Longitude Lines",
+ "sublabel"=> "Polarview / Graticule",
+ "value"=> "polarview:graticuleN",
+ "type" => "multi", "category" => "overlays"
+
+ )
+
+ )
+ );
+
+ echo json_encode($json);
+?>
\ No newline at end of file
diff --git a/data/geographic_ap_products.php b/data/geographic_ap_products.php
new file mode 100644
index 000000000..157d3b792
--- /dev/null
+++ b/data/geographic_ap_products.php
@@ -0,0 +1,1418 @@
+<?php
+ $json = array(
+ "Dust Storms" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Dust Score",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Dust_Score",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Index",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Index",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Absorbing Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Absorbing_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ )
+ ),
+
+
+ "Fires" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Fires (Past 24 Hours)",
+ "sublabel" => "MODIS Fire and Thermal Anomalies",
+ "value" => "fires24",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Fires (Past 48 Hours)",
+ "sublabel" => "MODIS Fire and Thermal Anomalies",
+ "value" => "fires48",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Land_Surface_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Land_Surface_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Land_Surface_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Land_Surface_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Carbon Monoxide (Total Column, Day)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_CO_Total_Column_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Carbon Monoxide (Total Column, Night)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_CO_Total_Column_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Index",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Index",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Absorbing Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Absorbing_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ )
+ ),
+
+
+ "Drought" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (1-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands121",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (1-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands121",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Snow Cover",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Snow Cover",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Precipitation Estimate (Day)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Precipitation_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Precipitation Estimate (Night)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Precipitation_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Drought Hazard => Frequency and Distribution",
+ "sublabel" => "SEDAC Global Drought Hazard Frequency and Distribution, v1 (1980–2000)",
+ "value" => "ndh-drought-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Drought Hazard => Mortality Risk",
+ "sublabel" => "SEDAC Global Drought Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-drought-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Drought Hazard => Economic Risk",
+ "sublabel" => "SEDAC Global Drought Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-drought-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ )
+ ),
+
+
+ "Smoke Plumes" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (3-6-7)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_Bands367",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Carbon Monoxide (Total Column, Day)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_CO_Total_Column_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Carbon Monoxide (Total Column, Night)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_CO_Total_Column_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Index",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Index",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Absorbing Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Absorbing_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ )
+ ),
+
+ "Ash Plumes" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulphur Dioxide (Day, Prata Algorithm)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Prata_SO2_Index_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulphur Dioxide (Night, Prata Algorithm)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Prata_SO2_Index_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Planetary Boundary Layer)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Planetary_Boundary_Layer",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Lower Troposphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Lower_Troposphere",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Middle Troposphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Middle_Troposphere",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Upper Troposphere and Stratosphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Upper_Troposphere_and_Stratosphere",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Volcano Hazard => Frequency and Distribution",
+ "sublabel" => "SEDAC Global Volcano Hazard Frequency and Distribution, v1 (1979–2000)",
+ "value" => "ndh-volcano-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Volcano Hazard => Mortality Risk",
+ "sublabel" => "SEDAC Global Volcano Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-volcano-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Volcano Hazard => Economic Risk",
+ "sublabel" => "SEDAC Global Volcano Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-volcano-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ )
+ ),
+
+
+
+ "Vegetation" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (1-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands121",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (1-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands121",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Snow Cover",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Snow Cover",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Land_Surface_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Land_Surface_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Land_Surface_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Land_Surface_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Pressure",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Cloud_Pressure",
+ "type" => "multi", "category" => "overlays"
+ )
+
+
+ ),
+
+
+ "Shipping" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (3-6-7)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_Bands367",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Sea Ice Extent",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Sea_Ice",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sea Ice Extent",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Sea_Ice",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Brightness Temperature (Band 31-Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Brightness_Temp_Band31_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Brightness Temperature (Band 31-Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Brightness_Temp_Band31_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Brightness Temperature (Band 31-Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Brightness_Temp_Band31_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Brightness Temperature (Band 31-Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Brightness_Temp_Band31_Night",
+ "type" => "multi", "category" => "overlays"
+ )
+ ),
+
+
+ "Air Quality" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Carbon Monoxide (Total Column, Day)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_CO_Total_Column_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Carbon Monoxide (Total Column, Night)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_CO_Total_Column_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulphur Dioxide (Day, Prata Algorithm)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Prata_SO2_Index_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulphur Dioxide (Night, Prata Algorithm)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Prata_SO2_Index_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Index",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Index",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Absorbing Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Absorbing_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Planetary Boundary Layer)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Planetary_Boundary_Layer",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Lower Troposphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Lower_Troposphere",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Middle Troposphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Middle_Troposphere",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Upper Troposphere and Stratosphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Upper_Troposphere_and_Stratosphere",
+ "type" => "multi", "category" => "overlays"
+ )
+
+ ),
+
+
+
+ "Severe Storms" => array(
+ array(
+ "label" => "Water Vapor (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Water_Vapor_5km_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Water Vapor (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Water_Vapor_5km_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Water Vapor (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Water_Vapor_5km_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Water Vapor (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Water_Vapor_5km_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Temperature (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Cloud_Top_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Temperature (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Cloud_Top_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Temperature (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Cloud_Top_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Temperature (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Cloud_Top_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Pressure (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Cloud_Top_Pressure_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Pressure (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Cloud_Top_Pressure_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Pressure (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Cloud_Top_Pressure_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Pressure (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Cloud_Top_Pressure_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Precipitation Estimate (Day)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Precipitation_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Precipitation Estimate (Night)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Precipitation_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Pressure",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Cloud_Pressure",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cyclone Hazard:Frequency and Distribution",
+ "sublabel" => "SEDAC Global Cyclone Hazard Frequency and Distribution, v1 (1980–2000)",
+ "value" => "ndh-cyclone-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cyclone Hazard:Mortality Risk",
+ "sublabel" => "SEDAC Global Cyclone Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-cyclone-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cyclone Hazard:Economic Risk",
+ "sublabel" => "SEDAC Global Cyclone Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-cyclone-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ ),
+
+ array(
+ "label" => "Flood Hazard:Frequency and Distribution",
+ "sublabel" => "SEDAC Global Flood Hazard Frequency and Distribution, v1 (1985–2003)",
+ "value" => "ndh-flood-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Flood Hazard:Mortality Risk",
+ "sublabel" => "SEDAC Global Flood Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-flood-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Flood Hazard:Economic Risk",
+ "sublabel" => "SEDAC Global Flood Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-flood-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ )
+
+ ),
+
+ "Floods" => array(
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (1-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands121",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (1-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands121",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Precipitation Estimate (Day)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Precipitation_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Precipitation Estimate (Night)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Precipitation_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land-Water Mask",
+ "sublabel" => "Terra-Aqua / MODIS",
+ "value" => "MODIS_Land_Water_Mask",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Flood Hazard:Frequency and Distribution",
+ "sublabel" => "SEDAC Global Flood Hazard Frequency and Distribution, v1 (1985–2003)",
+ "value" => "ndh-flood-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Flood Hazard:Mortality Risk",
+ "sublabel" => "SEDAC Global Flood Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-flood-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Flood Hazard:Economic Risk",
+ "sublabel" => "SEDAC Global Flood Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-flood-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ )
+ ),
+
+
+ "All" => array(
+ array(
+ "label" => "Empty",
+ "sublabel" => "",
+ "value" => "NON_EXISTENT_LAYER",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_TrueColor",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (True Color)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands143",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (1-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands121",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (1-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands121",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (3-6-7)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_Bands367",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Corrected Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_CorrectedReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Land Surface Reflectance (7-2-1)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_SurfaceReflectance_Bands721",
+ "type" => "single", "category" => "baselayers"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Aerosol",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Brightness Temperature (Band 31-Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Brightness_Temp_Band31_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Brightness Temperature (Band 31-Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Brightness_Temp_Band31_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Brightness Temperature (Band 31-Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Brightness_Temp_Band31_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Brightness Temperature (Band 31-Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Brightness_Temp_Band31_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Pressure (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Cloud_Top_Pressure_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Pressure (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Cloud_Top_Pressure_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Pressure (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Cloud_Top_Pressure_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Pressure (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Cloud_Top_Pressure_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Temperature (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Cloud_Top_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Temperature (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Cloud_Top_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Temperature (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Cloud_Top_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Top Temperature (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Cloud_Top_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Fires (Past 24 Hours)",
+ "sublabel" => "MODIS Fire and Thermal Anomalies",
+ "value" => "fires24",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Fires (Past 48 Hours)",
+ "sublabel" => "MODIS Fire and Thermal Anomalies",
+ "value" => "fires48",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Land_Surface_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Land_Surface_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Land_Surface_Temp_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land Surface Temperature (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Land_Surface_Temp_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sea Ice Extent",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Sea_Ice",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sea Ice Extent",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Sea_Ice",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Snow Cover",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Snow Cover",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Snow_Cover",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Water Vapor (Day)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Water_Vapor_5km_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Water Vapor (Day)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Water_Vapor_5km_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Water Vapor (Night)",
+ "sublabel" => "Terra / MODIS",
+ "value" => "MODIS_Terra_Water_Vapor_5km_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Water Vapor (Night)",
+ "sublabel" => "Aqua / MODIS",
+ "value" => "MODIS_Aqua_Water_Vapor_5km_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Land-Water Mask",
+ "sublabel" => "Terra-Aqua / MODIS",
+ "value" => "MODIS_Land_Water_Mask",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Carbon Monoxide (Total Column, Day)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_CO_Total_Column_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Carbon Monoxide (Total Column, Night)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_CO_Total_Column_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Dust Score",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Dust_Score",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Precipitation Estimate (Day)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Precipitation_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Precipitation Estimate (Night)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Precipitation_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulphur Dioxide (Day, Prata Algorithm)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Prata_SO2_Index_Day",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulphur Dioxide (Night, Prata Algorithm)",
+ "sublabel" => "Aqua / AIRS",
+ "value" => "AIRS_Prata_SO2_Index_Night",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Absorbing Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Absorbing_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Index",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Index",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Aerosol Optical Depth",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Aerosol_Optical_Depth",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cloud Pressure",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_Cloud_Pressure",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Planetary Boundary Layer)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Planetary_Boundary_Layer",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Lower Troposphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Lower_Troposphere",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Middle Troposphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Middle_Troposphere",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Sulfur Dioxide (Upper Troposphere and Stratosphere)",
+ "sublabel" => "Aura / OMI",
+ "value" => "OMI_SO2_Upper_Troposphere_and_Stratosphere",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cyclone Hazard:Frequency and Distribution",
+ "sublabel" => "SEDAC Global Cyclone Hazard Frequency and Distribution, v1 (1980–2000)",
+ "value" => "ndh-cyclone-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cyclone Hazard:Mortality Risk",
+ "sublabel" => "SEDAC Global Cyclone Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-cyclone-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Cyclone Hazard:Economic Risk",
+ "sublabel" => "SEDAC Global Cyclone Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-cyclone-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Drought Hazard:Frequency and Distribution",
+ "sublabel" => "SEDAC Global Drought Hazard Frequency and Distribution, v1 (1980–2000)",
+ "value" => "ndh-drought-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Drought Hazard:Mortality Risk",
+ "sublabel" => "SEDAC Global Drought Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-drought-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Drought Hazard:Economic Risk",
+ "sublabel" => "SEDAC Global Drought Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-drought-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Flood Hazard:Frequency and Distribution",
+ "sublabel" => "SEDAC Global Flood Hazard Frequency and Distribution, v1 (1985–2003)",
+ "value" => "ndh-flood-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Flood Hazard:Mortality Risk",
+ "sublabel" => "SEDAC Global Flood Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-flood-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Flood Hazard:Economic Risk",
+ "sublabel" => "SEDAC Global Flood Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-flood-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Volcano Hazard:Frequency and Distribution",
+ "sublabel" => "SEDAC Global Volcano Hazard Frequency and Distribution, v1 (1979–2000)",
+ "value" => "ndh-volcano-hazard-frequency-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Volcano Hazard:Mortality Risk",
+ "sublabel" => "SEDAC Global Volcano Mortality Risks and Distribution, v1 (2000)",
+ "value" => "ndh-volcano-mortality-risks-distribution",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Volcano Hazard:Economic Risk",
+ "sublabel" => "SEDAC Global Volcano Proportional Economic Loss Risk Deciles, v1 (2000)",
+ "value" => "ndh-volcano-proportional-economic-loss-risk-deciles",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Administrative Boundaries",
+ "sublabel" => "SEDAC / L1 Admin Boundaries",
+ "value" => "cartographic:esri-administrative-boundaries_level-1",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Coastlines",
+ "sublabel" => "SEDAC / Coastlines v3",
+ "value" => "gpw-v3-coastlines",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Global Labels",
+ "sublabel" => "SEDAC / Global Labels",
+ "value" => "cartographic:00-global-labels",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "National Boundaries",
+ "sublabel" => "SEDAC / National Boundaries",
+ "value" => "cartographic:national-boundaries",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Population Density",
+ "sublabel" => "SEDAC GRUMP v1 Population Count 2000",
+ "value" => "grump-v1-population-count_2000",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Latitude-Longitude Lines",
+ "sublabel" => "OpenLayers / Graticule Control",
+ "value" => "ol_graticule",
+ "type" => "multi", "category" => "overlays"
+ )
+ ),
+
+ "Other" => array(
+ array(
+ "label" => "Population Density",
+ "sublabel" => "SEDAC GRUMP v1 Population Count 2000",
+ "value" => "grump-v1-population-count_2000",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Administrative Boundaries",
+ "sublabel" => "SEDAC / L1 Admin Boundaries",
+ "value" => "cartographic:esri-administrative-boundaries_level-1",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "National Boundaries",
+ "sublabel" => "SEDAC / National Boundaries",
+ "value" => "cartographic:national-boundaries",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Coastlines",
+ "sublabel" => "SEDAC / Coastlines v3",
+ "value" => "gpw-v3-coastlines",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Global Labels",
+ "sublabel" => "SEDAC / Global Labels",
+ "value" => "cartographic:00-global-labels",
+ "type" => "multi", "category" => "overlays"
+ ),
+ array(
+ "label" => "Latitude-Longitude Lines",
+ "sublabel" => "OpenLayers / Graticule Control",
+ "value" => "ol_graticule",
+ "type" => "multi", "category" => "overlays"
+ )
+ )
+ );
+
+ echo json_encode($json);
+?>
\ No newline at end of file
diff --git a/images/addLayers.png b/images/addLayers.png
new file mode 100644
index 000000000..721634518
Binary files /dev/null and b/images/addLayers.png differ
diff --git a/images/airquality.png b/images/airquality.png
new file mode 100644
index 000000000..7936cc21a
Binary files /dev/null and b/images/airquality.png differ
diff --git a/images/antarctic.png b/images/antarctic.png
new file mode 100644
index 000000000..edfcb83b8
Binary files /dev/null and b/images/antarctic.png differ
diff --git a/images/arctic.png b/images/arctic.png
new file mode 100644
index 000000000..c25ebc6a6
Binary files /dev/null and b/images/arctic.png differ
diff --git a/images/ashplumes.png b/images/ashplumes.png
new file mode 100644
index 000000000..1867af092
Binary files /dev/null and b/images/ashplumes.png differ
diff --git a/images/close.png b/images/close.png
new file mode 100644
index 000000000..5d037cccc
Binary files /dev/null and b/images/close.png differ
diff --git a/images/drought.png b/images/drought.png
new file mode 100644
index 000000000..43ad79063
Binary files /dev/null and b/images/drought.png differ
diff --git a/images/duststorms.png b/images/duststorms.png
new file mode 100644
index 000000000..32e0eb43b
Binary files /dev/null and b/images/duststorms.png differ
diff --git a/images/fires.png b/images/fires.png
new file mode 100644
index 000000000..8411205c9
Binary files /dev/null and b/images/fires.png differ
diff --git a/images/floods.png b/images/floods.png
new file mode 100644
index 000000000..a42093b4c
Binary files /dev/null and b/images/floods.png differ
diff --git a/images/geographic.png b/images/geographic.png
new file mode 100644
index 000000000..09306bd63
Binary files /dev/null and b/images/geographic.png differ
diff --git a/images/other.png b/images/other.png
new file mode 100644
index 000000000..9d2d48c1e
Binary files /dev/null and b/images/other.png differ
diff --git a/images/projSwitch.png b/images/projSwitch.png
new file mode 100644
index 000000000..1f19847bf
Binary files /dev/null and b/images/projSwitch.png differ
diff --git a/images/severestorms.png b/images/severestorms.png
new file mode 100644
index 000000000..c18ccd357
Binary files /dev/null and b/images/severestorms.png differ
diff --git a/images/shipping.png b/images/shipping.png
new file mode 100644
index 000000000..94434db94
Binary files /dev/null and b/images/shipping.png differ
diff --git a/images/smokeplumes.png b/images/smokeplumes.png
new file mode 100644
index 000000000..789f012d6
Binary files /dev/null and b/images/smokeplumes.png differ
diff --git a/images/vegetation.png b/images/vegetation.png
new file mode 100644
index 000000000..0922dd704
Binary files /dev/null and b/images/vegetation.png differ
diff --git a/images/worldview.png b/images/worldview.png
index 4ce1f88e8..c5a6a824c 100644
Binary files a/images/worldview.png and b/images/worldview.png differ
diff --git a/index.html b/index.html
index 88c3d8625..e46ded064 100644
--- a/index.html
+++ b/index.html
@@ -1,3 +1,4 @@
+<html>
<head>
<title>EOSDIS Worldview (Alpha)</title>
@@ -36,9 +37,9 @@
<!-- CSS for OpenLayers -->
- <link type="text/css" href="css/ext/openlayers-2.12/openlayers.defaulttheme.style.css" rel="StyleSheet" />
- <link type="text/css" href="css/ext/openlayers-2.12/openlayers.example.style.css" rel="StyleSheet" />
- <link type="text/css" href="css/ext/openlayers-2.12/openlayers.style.mobile-jq.css" rel="StyleSheet" />
+ <link type="text/css" href="css/ext/openlayers-2.11/openlayers.defaulttheme.style.css" rel="StyleSheet" />
+ <link type="text/css" href="css/ext/openlayers-2.11/openlayers.example.style.css" rel="StyleSheet" />
+ <link type="text/css" href="css/ext/openlayers-2.11/openlayers.style.mobile-jq.css" rel="StyleSheet" />
<!-- CSS for map style -->
@@ -46,11 +47,13 @@
<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" />
<!-- External Javascript includes -->
- <script type="text/javascript" src="js/ext/openlayers-2.12/OpenLayers.js?mobile"></script>
+ <script type="text/javascript" src="js/ext/openlayers-2.12rc7/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> -->
@@ -64,6 +67,9 @@
<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>
@@ -78,6 +84,7 @@
<div id="hazard"></div>
<div id="products"></div>
<div id="map"></div>
+ <div id="switch"></div>
<div class="horizontalContainer">
<div id="time"></div>
</div>
@@ -95,7 +102,9 @@
REGISTRY.addEventListener("map","time");
REGISTRY.addEventListener("time","map");
- REGISTRY.addEventListener("products","map","time");
+ REGISTRY.addEventListener("switch","map","products","selectorbox","time");
+ REGISTRY.addEventListener("products","map","time","selectorbox");
+ REGISTRY.addEventListener("selectorbox","products");
//REGISTRY.addEventListener("hazard","products");
function testQS(){
diff --git a/js/bank.js b/js/bank.js
new file mode 100644
index 000000000..37b7ca229
--- /dev/null
+++ b/js/bank.js
@@ -0,0 +1,486 @@
+SOTE.namespace("SOTE.widget.Bank");
+
+SOTE.widget.Bank.prototype = new SOTE.widget.Component;
+
+/**
+ * Instantiate the Bank
+ *
+ * @class A selection device classifying radio buttons/checkboxes into categories that are displayed in Accordion form.
+ * Radio buttons allow single selection accross categories. Checkboxes allow multiple selections accross categories.
+ * Radio selections cannot span multiple categories.
+ * @constructor
+ * @this {Bank}
+ * @param {String} containerId is the container id of the div in which to render the object
+ * @param {Object} [config] is a hash allowing configuration of this component
+ * @config {Object[]} [items] a JS Array of JS Objects: items.category[i..n].key, items.category[i..n].value
+ * , items.category[i..n].action, items.type[i..n] representing the available options
+ * @config {String} [selected] the key of the initially selected option(s)
+ * @augments SOTE.widget.Component
+ *
+*/
+SOTE.widget.Bank = function(containerId, config){
+ //Get the ID of the container element
+ this.container=document.getElementById(containerId);
+ if (this.container==null){
+ this.setStatus("Error: element '"+containerId+"' not found!",true);
+ return;
+ }
+ this.id = containerId;
+ //Store the container's ID
+ this.containerId=containerId;
+
+ //Define an object for holding configuration
+ if (config===undefined){
+ config={};
+ }
+
+ if(config.title === undefined){
+ config.title = "My Bank";
+ }
+
+ if(config.categories === undefined){
+ config.categories = ["Category 1","Category 2"];
+ }
+
+ if(config.callback === undefined){
+ config.callback = null;
+ }
+
+ if(config.state === undefined){
+ config.state = "geographic";
+ }
+
+
+ this.values = null;
+ this.state = config.state;
+ this.selected = config.selected;
+ this.dataSourceUrl = config.dataSourceUrl;
+ this.title = config.title;
+ this.callback = config.callback;
+ this.selector = config.selector;
+ this.meta = new Object;
+ this.buildMetaDone = false;
+ /*this.meta["MODIS_Terra_CorrectedReflectance_TrueColor"] = {label:"Corrected Reflectance (True Color)",sublabel:"Terra / MODIS"};
+ this.meta["fires48"] = {label:"Fires (Past 48 Hours)",sublabel:"MODIS Fire and Thermal Anomalies"};
+ this.meta["AIRS_Dust_Score"] = {label:"Dust Score",sublabel:"Aqua / AIRS"};
+ this.meta["OMI_Aerosol_Index"] = {label:"Aerosol Index",sublabel:"Aura / OMI"};*/
+ this.categories = config.categories;
+ this.initRenderComplete = false;
+ this.dataSourceUrl = config.dataSourceUrl;
+ this.statusStr = "";
+ this.init();
+ //this.updateComponent(this.id+"=baselayers.MODIS_Terra_CorrectedReflectance_TrueColor-overlays.fires48.AIRS_Dust_Score.OMI_Aerosol_Index")
+
+}
+
+SOTE.widget.Bank.prototype.buildMeta = function(cb,val){
+ SOTE.util.getJSON(
+ "data/" + this.state + "_" + this.dataSourceUrl,
+ {self:this,callback:cb,val:val},
+ SOTE.widget.Bank.handleMetaSuccess,
+ SOTE.widget.Bank.handleUpdateFailure
+ );
+};
+
+SOTE.widget.Bank.handleMetaSuccess = function(data,status,xhr,args){
+ var self = args.self;
+ for(var i in data){
+ for(var j=0; j<data[i].length; j++){
+ self.meta[data[i][j].value] = {label:data[i][j].label,sublabel:data[i][j].sublabel};
+ }
+ }
+
+ if(args.callback){
+ args.callback({self:self,val:args.val});
+ }
+ else{
+ self.values = null;
+ self.values = self.unserialize(self.selected[self.state]);
+ self.render();
+ self.fire();
+ }
+ self.buildMetaDone = true;
+};
+
+/**
+ * Displays all options in HTML in an Accordion format (see JQuery UI Accordion) with the selected states being indicated
+ * by radio button and checkbox selection. All callbacks should be set. The component UI should be rendered
+ * with controllers to call the events.
+ *
+ *
+ * @this {Bank}
+ *
+*/
+SOTE.widget.Bank.prototype.init = function(){
+
+ this.buildMeta();
+
+ if(REGISTRY){
+ REGISTRY.register(this.id,this);
+ }
+ else{
+ alert("No REGISTRY found! Cannot register Bank!");
+ }
+
+
+};
+
+/**
+ * Renders the UI accordion from this.items
+ *
+ *
+ * @this {Bank}
+ *
+*/
+SOTE.widget.Bank.prototype.render = function(){
+
+ this.container.innerHTML = "";
+
+ //$('#'+this.id).addClass('bank');
+ var container = document.createElement("div");
+ container.setAttribute("class","bank");
+
+ var titleContainer = document.createElement("div");
+ var title = document.createElement("h2");
+ title.innerHTML = this.title;
+ var ext = document.createElement("a");
+ ext.setAttribute("id","callSelectorLink");
+ ext.setAttribute("class","callSelectorLink")
+
+ titleContainer.appendChild(title);
+ titleContainer.appendChild(ext);
+
+ container.appendChild(titleContainer);
+
+ $('#'+this.id).delegate('.callSelectorLink','click',{selector:this.selector},this.callback);
+
+
+ for(var i=0; i<this.categories.length; i++){
+ var formattedCategoryName = this.categories[i].replace(/\s/g, "");
+ var category = document.createElement("ul");
+ category.setAttribute("id",formattedCategoryName.toLowerCase());
+ category.setAttribute("class",this.id+"category category");
+ var categoryTitleEl = document.createElement("li");
+ var categoryTitle = document.createElement("h3");
+ categoryTitle.setAttribute("class","head");
+ categoryTitle.innerHTML = this.categories[i];
+ categoryTitleEl.appendChild(categoryTitle);
+ category.appendChild(categoryTitleEl);
+
+ if(this.values !== null && this.values[formattedCategoryName.toLowerCase()]){
+ for(var j=0; j<this.values[formattedCategoryName.toLowerCase()].length; j++){
+ var item = document.createElement("li");
+ item.setAttribute("id",formattedCategoryName.toLowerCase()+"-"+this.values[formattedCategoryName.toLowerCase()][j].value);
+ item.setAttribute("class",this.id+"item item");
+ item.innerHTML = "<a><img class='close' id='"+this.values[formattedCategoryName.toLowerCase()][j].value.replace(/:/g,"colon")+"' src='images/close.png' /></a>";
+ if(this.meta !== null && this.meta[this.values[formattedCategoryName.toLowerCase()][j].value]){
+ item.innerHTML += "<h4>"+this.meta[this.values[formattedCategoryName.toLowerCase()][j].value].label+"</h4>";
+ item.innerHTML += "<p>"+this.meta[this.values[formattedCategoryName.toLowerCase()][j].value].sublabel+"</p>";
+ }
+ else{
+ item.innerHTML += "<h4>"+this.values[formattedCategoryName.toLowerCase()][j].value+"</h4>";
+ }
+ category.appendChild(item);
+ }
+ }
+
+ container.appendChild(category);
+ }
+ this.container.appendChild(container);
+ var accordionToggler = document.createElement("a");
+ accordionToggler.setAttribute("class","accordionToggler atcollapse");
+ this.isCollapsed = false;
+ this.container.appendChild(accordionToggler);
+ $('.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);
+ // Mark the component as ready in the registry if called via init()
+ if ((this.initRenderComplete === false) && REGISTRY) {
+ this.initRenderComplete = true;
+ REGISTRY.markComponentReady(this.id);
+ }
+
+};
+
+SOTE.widget.Bank.toggle = function(e,ui){
+ var self = e.data.self;
+ if(self.isCollapsed){
+ $('.accordionToggler').removeClass('atexpand').addClass('atcollapse');
+ $('.accordionToggler').attr("title","Hide Products");
+ $('.bank').css('display','block');
+ self.isCollapsed = false;
+ }
+ else{
+ $('.accordionToggler').removeClass('atcollapse').addClass('atexpand');
+ $('.accordionToggler').attr("title","Show Products");
+ $('.bank').css('display','none');
+ self.isCollapsed = true;
+ }
+};
+
+SOTE.widget.Bank.handleSort = function(e,ui){
+ var self = e.data.self;
+ self.values = new Object;
+ for(var i=0; i<self.categories.length; i++){
+ var formatted = self.categories[i].replace(/\s/g, "");
+ formatted = formatted.toLowerCase();
+ self.values[formatted] = new Array();
+ jQuery('li[id|="'+formatted+'"]').each(function() {
+ var item = jQuery( this );
+ var id = item.attr("id");
+ var vals = id.split("-");
+ var val = vals.splice(0,1);
+ val = vals.join("-");
+ self.values[formatted].push({value:val});
+ });
+ }
+ self.fire();
+
+};
+
+SOTE.widget.Bank.removeValue = function(e){
+ var self = e.data.self;
+ var val = e.target.id.replace(/colon/g,":");
+ for(var i=0; i<self.categories.length; i++){
+ var formatted = self.categories[i].replace(/\s/g, "");
+ formatted = formatted.toLowerCase();
+ for(var j=0; j<self.values[formatted].length; j++){
+ if(self.values[formatted][j].value == val){
+ self.values[formatted].splice(j,1);
+ }
+ }
+ }
+ var formattedVal = val.replace(/:/g,"colon");
+ //self.render();
+ $("#"+self.id+" #"+formattedVal).parent().parent().remove();
+ self.fire();
+};
+
+/**
+ * Fires an event to the registry when the state of the component is changed
+ *
+ * @this {Bank}
+ *
+*/
+SOTE.widget.Bank.prototype.fire = function(){
+
+ if(REGISTRY){
+ REGISTRY.fire(this);
+ }
+ else{
+ alert("No REGISTRY found! Cannot fire to REGISTRY from Bank!");
+ }
+
+};
+
+/**
+ * Sets the selected option(s) in the Bank from the passed in value(s), if valid
+ * [containerId]=[options] (options is a dot delimited string with the first item containing
+ * a single select item, and the remaining items containing the multi-select items).
+ *
+ * @this {Bank}
+ * @param {String} value is a dot delimited string of the key(s) of the option(s) to be set as selected
+ * @returns {boolean} true or false depending on if the new value(s) validates
+ *
+*/
+SOTE.widget.Bank.prototype.setValue = function(valString){
+
+ this.values = this.unserialize(valString);
+ this.render();
+ this.fire();
+
+};
+
+/**
+ * Gets the currently selected option(s) [containerId]=[options]
+ *
+ * @this {Bank}
+ * @returns {String} [container]=[options], options being a dot delimited string
+ * representing the key(s) of the currently selected option(s)
+ *
+*/
+SOTE.widget.Bank.prototype.getValue = function(){
+
+ var value = this.serialize(this.values);
+ return this.id + "=" + value;
+};
+
+SOTE.widget.Bank.prototype.serialize = function(values){
+ var serialized = "";
+ for(var i=0; i<this.categories.length; i++){
+ if(i > 0){
+ serialized += "~";
+ }
+ var formatted = this.categories[i].replace(/\s/g, "");
+ formatted = formatted.toLowerCase();
+
+ serialized += formatted;
+ if(values[formatted]){
+ for(var j=0; j<values[formatted].length; j++){
+ serialized += "." + values[formatted][j].value;
+ }
+ }
+ }
+ return serialized;
+};
+
+SOTE.widget.Bank.prototype.unserialize = function(string){
+ var unserialized = new Object;
+ var categories = string.split("~");
+ for(var i=0; i<categories.length; i++){
+ var items = categories[i].split(".");
+ unserialized[items[0]] = new Array;
+ for(var j=1; j<items.length; j++){
+ unserialized[items[0]].push({"value":items[j]});
+ }
+
+ }
+ return unserialized;
+};
+
+/**
+ * Change the component based on dependencies (i.e. Available Options, Selected)
+ *
+ * @this {Bank}
+ * @param {String} querystring contains all values of dependencies (from registry)
+ * @returns {boolean} true or false depending on if the selected value still validats with criteria change
+ *
+*/
+SOTE.widget.Bank.prototype.updateComponent = function(querystring){
+ var qs = (querystring === undefined)? "":querystring;
+ /*SOTE.util.getJSON(
+ this.dataSourceUrl+"?"+querystring,
+ {self:this,qs:querystring},
+ SOTE.widget.Bank.handleUpdateSuccess,
+ SOTE.widget.Bank.handleUpdateFailure
+ );*/
+ SOTE.widget.Bank.handleUpdateSuccess(this,qs);
+};
+
+/**
+ * Static function to handle a successful retrieval from the data accessor
+ *
+ * @this {Bank}
+ * @param {Object,String,Object,Object} data is the data passed back from the call, status is the response status, xhr is the applicable xmlhttprequest object, args are the custom arguments passed
+ *
+*/
+SOTE.widget.Bank.handleUpdateSuccess = function(self,qs){
+ /*var expanded = SOTE.util.extractFromQuery("hazard",args.qs);
+ data.expanded = (expanded !== undefined && expanded !== "" && expanded !== null)? expanded:data.expanded;
+ data.selected = (data.selected === undefined || data.selected === "")? SOTE.util.extractFromQuery(args.self.id,args.self.getValue()):data.selected;*/
+ if(SOTE.util.extractFromQuery("switch",qs) == self.state){
+ var vals = SOTE.util.extractFromQuery("selectorbox",qs)
+ self.values = self.unserialize(vals);
+ self.render();
+ self.fire();
+ }
+ else {
+ self.state = SOTE.util.extractFromQuery("switch",qs);
+ self.buildMeta();
+ }
+};
+
+/**
+ * Static function to handle a failed retrieval from the data accessor
+ *
+ * @this {Bank}
+ * @param {Object,String,String,Object} xhr is the applicable xmlhttprequest object, status is the response status, error is the thrown error, args are the custom arguments passed
+ *
+*/
+SOTE.widget.Bank.handleUpdateFailure = function(xhr,status,error,args){
+ alert("Failed to load data accessor: " + error);
+};
+
+
+/**
+ * Sets the selected option(s) from the query string [containerId]=[options]
+ *
+ * @this {Bank}
+ * @param {String} qs contains the querystring
+ * @returns {boolean} true or false depending on whether the new option validates
+ *
+*/
+SOTE.widget.Bank.prototype.loadFromQuery = function(qs){
+ var newState = SOTE.util.extractFromQuery("switch",qs);
+ if(this.state != newState){
+ this.state = newState;
+ this.buildMeta(SOTE.widget.Bank.loadValue,SOTE.util.extractFromQuery(this.id,qs));
+ }
+ else {
+ this.sleep(SOTE.util.extractFromQuery(this.id,qs));
+ }
+};
+
+SOTE.widget.Bank.prototype.sleep = function(v){
+ setTimeout(SOTE.widget.Bank.loadValue,100,{self:this,val:v});
+}
+
+SOTE.widget.Bank.loadValue = function(args){
+ if(args.self.buildMetaDone == true){
+ args.self.setValue(args.val);
+ }
+ else {
+ args.self.sleep(args.val);
+ }
+};
+
+/**
+ * Validates that the selected option(s) is not null, only one radio button is selected cross category
+ * and all options are within the scope of available options
+ *
+ * @this {Bank}
+ * @returns {boolean} true or false depending on whether the selected option(s) meet the validation criteria
+*/
+SOTE.widget.Bank.prototype.validate = function(){
+
+ var isValid = true;
+ return isValid;
+
+};
+
+/**
+ * Sets the data accessor that provides state change instructions given dependencies
+ *
+ * @this {Bank}
+ * @param {String} datasourceurl is the relative location of the data accessor
+ *
+*/
+SOTE.widget.Bank.prototype.setDataSourceUrl = function(dataSourceUrl){
+ this.dataSourceUrl = dataSourceUrl;
+};
+
+/**
+ * Gets the data accessor
+ *
+ * @this {Bank}
+ * @returns {String} the relative location of the accessor
+ *
+*/
+SOTE.widget.Bank.prototype.getDataSourceUrl = function(){
+ return this.dataSourceUrl;
+};
+
+/**
+ * Sets the status of the component
+ *
+ * @this {Bank}
+ * @param {String} s the current status of the component (user prompts, error messages)
+ *
+*/
+SOTE.widget.Bank.prototype.setStatus = function(s){
+ this.statusStr = s;
+};
+
+/**
+ * Gets the status of the component
+ *
+ * @this {Bank}
+ * @returns {String} the current status of the component (user prompts, error messages)
+ *
+*/
+SOTE.widget.Bank.prototype.getStatus = function(){
+ return this.statusStr;
+};
+
diff --git a/js/dateSpan.js b/js/dateSpan.js
index c989a1aa2..f57def618 100644
--- a/js/dateSpan.js
+++ b/js/dateSpan.js
@@ -350,17 +350,25 @@ SOTE.widget.DateSpan.prototype.getValue = function(){
SOTE.widget.DateSpan.prototype.updateComponent = function(qs){
var bbox = SOTE.util.extractFromQuery('map',qs);
var products = SOTE.util.extractFromQuery('products',qs);
- var a = products.split(".");
+ var a = products.split("~");
var activeProducts = new Array();
- for(var i=1; i < a.length; ++i){
- activeProducts.push(a[i])
+
+ var base = a[0].split(".");
+ var overlays = a[1].split(".");
+ for(var i=1; i<base.length; ++i){
+ activeProducts.push(base[i]);
+ }
+ for(var i=1; i<overlays.length; ++i){
+ activeProducts.push(overlays[i]);
}
- if(this.isCollapsed === false){
+
+ if(this.isCollapsed == false){
var numOfDays = this.range/24/60/60/1000;
var startDate = new Date(this.endDate.getTime() - this.range);
for(var i=0; i<numOfDays; i++){
var time = new Date(startDate.getTime() + (i+1)*24*60*60*1000);
var timeString = SOTE.util.ISO8601StringFromDate(time);
+ this.maps[i].updateComponent(qs);
this.maps[i].activateRelevantLayersDisableTheRest(activeProducts,timeString);
this.maps[i].setValue(bbox);
}
diff --git a/js/mapSote.js b/js/mapSote.js
index dee642cb8..79db0643b 100644
--- a/js/mapSote.js
+++ b/js/mapSote.js
@@ -109,7 +109,7 @@ SOTE.widget.MapSote.prototype.handleMapZoomEnd = function(evt)
}
else
{
- $('.olControlZoomInCustomItemInactive').css("background-color", "rgba(38,38,38,0.7)");
+ $('.olControlZoomInCustomItemInactive').css("background-color", "rgba(68,68,68,0.85)");
$('.olControlZoomInCustomItemInactive').css("color", "#FFFFFF");
}
@@ -121,7 +121,7 @@ SOTE.widget.MapSote.prototype.handleMapZoomEnd = function(evt)
}
else
{
- $('.olControlZoomOutCustomItemInactive').css("background-color", "rgba(38,38,38,0.7)");
+ $('.olControlZoomOutCustomItemInactive').css("background-color", "rgba(68,68,68,0.85)");
$('.olControlZoomOutCustomItemInactive').css("color", "#FFFFFF");
}
diff --git a/js/selector.js b/js/selector.js
new file mode 100644
index 000000000..3ddaa4d10
--- /dev/null
+++ b/js/selector.js
@@ -0,0 +1,503 @@
+SOTE.namespace("SOTE.widget.Selector");
+
+SOTE.widget.Selector.prototype = new SOTE.widget.Component;
+
+/**
+ * Instantiate the Selector
+ *
+ * @class A selection device classifying radio buttons/checkboxes into categories that are displayed in Accordion form.
+ * Radio buttons allow single selection accross categories. Checkboxes allow multiple selections accross categories.
+ * Radio selections cannot span multiple categories.
+ * @constructor
+ * @this {Selector}
+ * @param {String} containerId is the container id of the div in which to render the object
+ * @param {Object} [config] is a hash allowing configuration of this component
+ * @config {Object[]} [items] a JS Array of JS Objects: items.category[i..n].key, items.category[i..n].value
+ * , items.category[i..n].action, items.type[i..n] representing the available options
+ * @config {String} [selected] the key of the initially selected option(s)
+ * @augments SOTE.widget.Component
+ *
+*/
+SOTE.widget.Selector = function(containerId, config){
+ //Get the ID of the container element
+ this.container=document.getElementById(containerId);
+ if (this.container==null){
+ this.setStatus("Error: element '"+containerId+"' not found!",true);
+ return;
+ }
+ this.id = containerId;
+ //Store the container's ID
+ this.containerId=containerId;
+
+ //Define an object for holding configuration
+ if (config===undefined){
+ config={};
+ }
+
+ if(config.categories === undefined){
+ config.categories = ["Category 1","Category 2"];
+ }
+
+ if(config.state === undefined){
+ config.state = "geographic";
+ }
+
+ this.values = new Object;
+ this.state = config.state;
+ this.meta = new Object;
+ this.categories = config.categories;
+ this.initRenderComplete = false;
+ this.dataSourceUrl = config.dataSourceUrl;
+ this.statusStr = "";
+ this.init();
+ //this.updateComponent(this.id+"=baselayers.MODIS_Terra_CorrectedReflectance_TrueColor-overlays.fires48.AIRS_Dust_Score.OMI_Aerosol_Index")
+
+}
+
+/**
+ * Displays all options in HTML in an Accordion format (see JQuery UI Accordion) with the selected states being indicated
+ * by radio button and checkbox selection. All callbacks should be set. The component UI should be rendered
+ * with controllers to call the events.
+ *
+ *
+ * @this {Selector}
+ *
+*/
+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(data,status,xhr,args){
+ var self = args.self;
+ self.data = data;
+ self.render();
+
+}
+
+/**
+ * Renders the UI accordion from this.items
+ *
+ *
+ * @this {Selector}
+ *
+*/
+SOTE.widget.Selector.prototype.render = function(){
+
+ this.container.innerHTML = "";
+
+ $('#'+this.id).addClass('selector');
+
+ var catList = document.createElement("ul");
+ catList.setAttribute("class","toplevel");
+
+//<div id="selectorbox"><h1>Choose Your Interest Area</h1><ul><li><a>Text 1</a></li></ul><a>Skip this step</a></div>
+ var titleContainer = document.createElement("div");
+ var title = document.createElement("h2");
+ title.innerHTML = "Choose Your Interest Area";
+ titleContainer.appendChild(title);
+ this.container.appendChild(titleContainer);
+
+ for(var i in this.data){
+ if(i !== "All"){
+ var catItem = document.createElement("li");
+ var formatted = i.replace(/\s/g, "");
+ itemLink = document.createElement("a");
+ itemLink.setAttribute("id",formatted);
+ itemLink.innerHTML = "<img src='images/"+formatted.toLowerCase()+".png' /><p>"+i+"</p>";
+ catItem.appendChild(itemLink);
+ catList.appendChild(catItem);
+ $("#"+this.id).delegate("#" + formatted,'click',{self:this,category:i},SOTE.widget.Selector.loadCategory);
+ }
+
+ }
+
+ this.container.appendChild(catList);
+
+ var subFront = document.createElement("a");
+ subFront.setAttribute("id","subfront");
+ subFront.setAttribute("class","flowbutton");
+ subFront.setAttribute("href","javascript:void(0);");
+ subFront.innerHTML = "<b>skip this step</b> to see all available layers >>";
+ this.container.appendChild(subFront);
+ $("#"+this.id).delegate("#" + "subfront",'click',{self:this,category:"All"},SOTE.widget.Selector.loadCategory);
+
+ // Mark the component as ready in the registry if called via init()
+ if ((this.initRenderComplete === false) && REGISTRY) {
+ this.initRenderComplete = true;
+ REGISTRY.markComponentReady(this.id);
+ }
+
+
+
+};
+
+SOTE.widget.Selector.callRender = function (e){
+ e.data.self.openCat = null;
+ e.data.self.render();
+};
+
+SOTE.widget.Selector.prototype.reloadCategory = function(){
+ var e = new Object;
+ e.data = new Object;
+ e.data.self = this;
+ e.data.category = this.openCat;
+ SOTE.widget.Selector.loadCategory(e);
+};
+
+SOTE.widget.Selector.loadCategory = function(e){
+
+ //<div id="selectorbox"><h1>Choose Your Layers: Dust Storms</h1><ul class='base'><li><a>Base 1</a></li></ul><ul class='overlays'><li><a>Overlay 1</a></li></ul><a>Previous step</a></div>
+
+ var self = e.data.self;
+ var cat = e.data.category;
+ self.openCat = cat;
+
+ var categories = new Object;
+ self.container.innerHTML = "";
+ var titleContainer = document.createElement("div");
+ var title = document.createElement("h2");
+ title.innerHTML = "Choose Your Layers: " + cat;
+ titleContainer.appendChild(title);
+ self.container.appendChild(titleContainer);
+
+ var form = document.createElement("form");
+
+ for(var i=0; i<self.categories.length; i++){
+ var formattedCategoryName = self.categories[i].replace(/\s/g, "");
+ categories[formattedCategoryName.toLowerCase()] = document.createElement("ul");
+ categories[formattedCategoryName.toLowerCase()].setAttribute("id",self.id + formattedCategoryName.toLowerCase());
+ categories[formattedCategoryName.toLowerCase()].setAttribute("class","category");
+ var categoryTitleEl = document.createElement("li");
+ var categoryTitle = document.createElement("h3");
+ categoryTitle.setAttribute("class","head");
+ categoryTitle.innerHTML = self.categories[i];
+ categoryTitleEl.appendChild(categoryTitle);
+ categories[formattedCategoryName.toLowerCase()].appendChild(categoryTitleEl);
+ }
+
+
+ for(var i=0; i< self.data[cat].length; i++){
+ var item = self.data[cat][i];
+ var subItem = document.createElement("li");
+ subItem.setAttribute("class","selectorItem item");
+ var itemHead = document.createElement("h4");
+ var formatted = item.value.replace(/:/g,"colon");
+ itemHead.innerHTML = item.label;
+ var itemP = document.createElement("p");
+ itemP.innerHTML = item.sublabel;
+ var itemInput = document.createElement("input");
+ if(item.type === "single"){
+ itemInput.setAttribute("type","radio");
+ itemInput.setAttribute("name",cat);
+ }
+ else {
+ itemInput.setAttribute("type","checkbox");
+ }
+ itemInput.setAttribute("id",formatted);
+ itemInput.setAttribute("value",item.value);
+ subItem.appendChild(itemInput);
+ subItem.appendChild(itemHead);
+ subItem.appendChild(itemP);
+ categories[item.category].appendChild(subItem);
+ $("#"+self.id).delegate("#" + formatted,'click',{self:self},SOTE.widget.Selector.toggleValue);
+ }
+
+ for(var i=0; i<self.categories.length; i++){
+ var formattedCategoryName = self.categories[i].replace(/\s/g, "").toLowerCase();
+ form.appendChild(categories[formattedCategoryName]);
+ }
+
+ self.container.appendChild(form);
+
+ var subBack = document.createElement("a");
+ subBack.setAttribute("id","subback");
+ subBack.setAttribute("class","flowbutton");
+ subBack.setAttribute("href","javascript:void(0);");
+ subBack.innerHTML = "<< <b>go back</b> and reselect my interest area";
+ self.container.appendChild(subBack);
+ $("#"+self.id).delegate("#" + "subback",'click',{self:self},SOTE.widget.Selector.callRender);
+ self.adjustSelected();
+
+};
+
+SOTE.widget.Selector.prototype.adjustSelected = function(){
+ var inputs = document.getElementsByTagName("input");
+ for(var i=0; i<inputs.length; i++){
+ inputs[i].checked = "";
+ }
+ for(var j=0; j<this.categories.length; j++){
+ var formatted = this.categories[j].replace(/\s/g, "");
+ formatted = formatted.toLowerCase();
+ if(this.values[formatted]){
+ for(var k=0; k < this.values[formatted].length; k++){
+ var val = this.values[formatted][k].value.replace(/:/g,"colon");
+ if(document.getElementById(val))
+ document.getElementById(val).checked = "checked";
+ }
+ }
+ }
+};
+
+SOTE.widget.Selector.toggleValue = function(e){
+ var self = e.data.self;
+ var targetEl = e.target;
+ var category = $("#"+targetEl.id).parent().parent().attr("id");
+ category = category.replace(self.id,"");
+ var value = $("#"+targetEl.id).attr("value");
+ value = value.replace(/colon/,":");
+ var checked = $("#"+targetEl.id).attr("checked");
+ if($("#"+targetEl.id).attr("type") == "radio"){
+ self.values[category] = new Array();
+ self.values[category].push({"value":value});
+ }
+ else {
+ if(!self.values[category]){
+ self.values[category] = new Array();
+ }
+ if(checked !== undefined && checked == "checked"){
+ self.removeItem(category,value);
+ self.values[category].push({"value":value});
+ }
+ else{
+ self.removeItem(category,value);
+ }
+
+ }
+ //alert(self.serialize(self.values));
+ //e.stopPropagation();
+ self.fire();
+};
+
+SOTE.widget.Selector.prototype.removeItem = function(cat,val){
+ for(var i=0; i<this.values[cat].length; i++){
+ if(this.values[cat][i].value == val){
+ this.values[cat].splice(i,1);
+ }
+ }
+};
+
+/**
+ * Fires an event to the registry when the state of the component is changed
+ *
+ * @this {Selector}
+ *
+*/
+SOTE.widget.Selector.prototype.fire = function(){
+
+ if(REGISTRY){
+ REGISTRY.fire(this);
+ }
+ else{
+ alert("No REGISTRY found! Cannot fire to REGISTRY from Selector!");
+ }
+
+};
+
+/**
+ * Sets the selected option(s) in the Selector from the passed in value(s), if valid
+ * [containerId]=[options] (options is a dot delimited string with the first item containing
+ * a single select item, and the remaining items containing the multi-select items).
+ *
+ * @this {Selector}
+ * @param {String} value is a dot delimited string of the key(s) of the option(s) to be set as selected
+ * @returns {boolean} true or false depending on if the new value(s) validates
+ *
+*/
+SOTE.widget.Selector.prototype.setValue = function(valString){
+
+ this.values = this.unserialize(valString);
+ return this.validate();
+
+};
+
+/**
+ * Gets the currently selected option(s) [containerId]=[options]
+ *
+ * @this {Selector}
+ * @returns {String} [container]=[options], options being a dot delimited string
+ * representing the key(s) of the currently selected option(s)
+ *
+*/
+SOTE.widget.Selector.prototype.getValue = function(){
+
+ var value = this.serialize(this.values);
+ return this.id + "=" + value;
+};
+
+SOTE.widget.Selector.prototype.serialize = function(values){
+ var serialized = "";
+ for(var i=0; i<this.categories.length; i++){
+ if(i > 0){
+ serialized += "~";
+ }
+ var formatted = this.categories[i].replace(/\s/g, "");
+ formatted = formatted.toLowerCase();
+
+ serialized += formatted;
+ if(values[formatted]){
+ for(var j=0; j<values[formatted].length; j++){
+ serialized += "." + values[formatted][j].value;
+ }
+ }
+ }
+ return serialized;
+};
+
+SOTE.widget.Selector.prototype.unserialize = function(string){
+ var unserialized = new Object;
+ var categories = string.split("~");
+ for(var i=0; i<categories.length; i++){
+ var items = categories[i].split(".");
+ unserialized[items[0]] = new Array;
+ for(var j=1; j<items.length; j++){
+ unserialized[items[0]].push({"value":items[j]});
+ }
+
+ }
+ return unserialized;
+};
+
+/**
+ * Change the component based on dependencies (i.e. Available Options, Selected)
+ *
+ * @this {Selector}
+ * @param {String} querystring contains all values of dependencies (from registry)
+ * @returns {boolean} true or false depending on if the selected value still validats with criteria change
+ *
+*/
+SOTE.widget.Selector.prototype.updateComponent = function(querystring){
+ var qs = (querystring === undefined)? "":querystring;
+ /*SOTE.util.getJSON(
+ this.dataSourceUrl+"?"+querystring,
+ {self:this,qs:querystring},
+ SOTE.widget.Selector.handleUpdateSuccess,
+ SOTE.widget.Selector.handleUpdateFailure
+ );*/
+ SOTE.widget.Selector.handleUpdateSuccess(this,qs);
+};
+
+/**
+ * Static function to handle a successful retrieval from the data accessor
+ *
+ * @this {Selector}
+ * @param {Object,String,Object,Object} data is the data passed back from the call, status is the response status, xhr is the applicable xmlhttprequest object, args are the custom arguments passed
+ *
+*/
+SOTE.widget.Selector.handleUpdateSuccess = function(self,qs){
+ /*var expanded = SOTE.util.extractFromQuery("hazard",args.qs);
+ data.expanded = (expanded !== undefined && expanded !== "" && expanded !== null)? expanded:data.expanded;
+ data.selected = (data.selected === undefined || data.selected === "")? SOTE.util.extractFromQuery(args.self.id,args.self.getValue()):data.selected;*/
+ if(SOTE.util.extractFromQuery("switch",qs) == self.state){
+ var vals = SOTE.util.extractFromQuery("products",qs);
+ self.values = self.unserialize(vals);
+ if(self.openCat !== undefined && self.openCat !== null){
+ self.adjustSelected();
+ }
+ }
+ else {
+ self.state = SOTE.util.extractFromQuery("switch",qs);
+ self.loadData();
+ }
+};
+
+/**
+ * Static function to handle a failed retrieval from the data accessor
+ *
+ * @this {Selector}
+ * @param {Object,String,String,Object} xhr is the applicable xmlhttprequest object, status is the response status, error is the thrown error, args are the custom arguments passed
+ *
+*/
+SOTE.widget.Selector.handleUpdateFailure = function(xhr,status,error,args){
+ alert("Failed to load data accessor: " + error);
+};
+
+
+/**
+ * Sets the selected option(s) from the query string [containerId]=[options]
+ *
+ * @this {Selector}
+ * @param {String} qs contains the querystring
+ * @returns {boolean} true or false depending on whether the new option validates
+ *
+*/
+SOTE.widget.Selector.prototype.loadFromQuery = function(qs){
+ //return this.setValue(SOTE.util.extractFromQuery(this.id,qs));
+};
+
+/**
+ * Validates that the selected option(s) is not null, only one radio button is selected cross category
+ * and all options are within the scope of available options
+ *
+ * @this {Selector}
+ * @returns {boolean} true or false depending on whether the selected option(s) meet the validation criteria
+*/
+SOTE.widget.Selector.prototype.validate = function(){
+
+ var isValid = true;
+ return isValid;
+
+};
+
+/**
+ * Sets the data accessor that provides state change instructions given dependencies
+ *
+ * @this {Selector}
+ * @param {String} datasourceurl is the relative location of the data accessor
+ *
+*/
+SOTE.widget.Selector.prototype.setDataSourceUrl = function(dataSourceUrl){
+ this.dataSourceUrl = dataSourceUrl;
+};
+
+/**
+ * Gets the data accessor
+ *
+ * @this {Selector}
+ * @returns {String} the relative location of the accessor
+ *
+*/
+SOTE.widget.Selector.prototype.getDataSourceUrl = function(){
+ return this.dataSourceUrl;
+};
+
+/**
+ * Sets the status of the component
+ *
+ * @this {Selector}
+ * @param {String} s the current status of the component (user prompts, error messages)
+ *
+*/
+SOTE.widget.Selector.prototype.setStatus = function(s){
+ this.statusStr = s;
+};
+
+/**
+ * Gets the status of the component
+ *
+ * @this {Selector}
+ * @returns {String} the current status of the component (user prompts, error messages)
+ *
+*/
+SOTE.widget.Selector.prototype.getStatus = function(){
+ return this.statusStr;
+};
+
diff --git a/js/sote.js b/js/sote.js
index 548d13c79..cea6def80 100644
--- a/js/sote.js
+++ b/js/sote.js
@@ -18,17 +18,29 @@ window.onload = function(){// Initialize "static" vars
ieWarningOverlay.center();
}
- // Create map
+ this.selector = new YAHOO.widget.Panel("selector", { zIndex:1019, visible:false } );
+ this.selector.setBody("<div id='selectorbox'></div>");
+ this.selector.render(document.body);
+
+ // Create map
var m = new SOTE.widget.MapSote("map",{baseLayer:"MODIS_Terra_CorrectedReflectance_TrueColor"});
- var a = new SOTE.widget.AccordionPicker("products",{dataSourceUrl:"data/ap_products.php"});
+ var ss = new SOTE.widget.Switch("switch",{dataSourceUrl:"a",selected:"geographic"});
+ var a = 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"},categories:["Base Layers","Overlays"],callback:this.showSelector,selector:this.selector});
+ var s = new SOTE.widget.Selector("selectorbox",{dataSourceUrl:"ap_products.php",categories:["Base Layers","Overlays"]});
//var h = new SOTE.widget.MenuPicker("hazard",{dataSourceUrl:"data/mp_hazard.php"});
//var tr = new SOTE.widget.MenuPicker("transition",{dataSourceUrl:"data/mp_transition.php"});
var map = new SOTE.widget.DateSpan("time",{hasThumbnail:false});
+};
+
+function showSelector(e){
+ var selector = e.data.selector;
+ selector.show();
+ selector.center();
}
function showOverlay(){
- if(this.overlay === undefined){
+ if(this.overlay === undefined){
this.overlay = new YAHOO.widget.Panel("panel1", { zIndex:1020, visible:false } );
var item = "<div >"+
"<h3>Welcome to Worldview</h3>"+
@@ -79,8 +91,10 @@ function showPermalink(){
var map = SOTE.util.extractFromQuery("map",qs);
var products = SOTE.util.extractFromQuery("products",qs);
var time = SOTE.util.extractFromQuery("time",qs);
+ var s = SOTE.util.extractFromQuery("switch",qs);
+
- qs = "?map="+map+"&products="+products+"&time="+time;
+ qs = "?map="+map+"&products="+products+"&time="+time+"&switch="+s;
var url = window.location.href;
var prefix = url.split("?")[0];
diff --git a/js/switch.js b/js/switch.js
new file mode 100644
index 000000000..1462d2996
--- /dev/null
+++ b/js/switch.js
@@ -0,0 +1,260 @@
+SOTE.namespace("SOTE.widget.Switch");
+
+SOTE.widget.Switch.prototype = new SOTE.widget.Component;
+
+/**
+ * Instantiate the Switch
+ *
+ * @class A selection device classifying radio buttons/checkboxes into categories that are displayed in Accordion form.
+ * Radio buttons allow single selection accross categories. Checkboxes allow multiple selections accross categories.
+ * Radio selections cannot span multiple categories.
+ * @constructor
+ * @this {Switch}
+ * @param {String} containerId is the container id of the div in which to render the object
+ * @param {Object} [config] is a hash allowing configuration of this component
+ * @config {Object[]} [items] a JS Array of JS Objects: items.category[i..n].key, items.category[i..n].value
+ * , items.category[i..n].action, items.type[i..n] representing the available options
+ * @config {String} [selected] the key of the initially selected option(s)
+ * @augments SOTE.widget.Component
+ *
+*/
+SOTE.widget.Switch = function(containerId, config){
+ //Get the ID of the container element
+ this.container=document.getElementById(containerId);
+ if (this.container==null){
+ this.setStatus("Error: element '"+containerId+"' not found!",true);
+ return;
+ }
+ this.id = containerId;
+ //Store the container's ID
+ this.containerId=containerId;
+
+ //Define an object for holding configuration
+ if (config===undefined){
+ config={};
+ }
+
+ this.value = config.selected;
+ this.data = (config.values !== undefined)? config.values:null;
+ this.initRenderComplete = false;
+ this.dataSourceUrl = config.dataSourceUrl;
+ this.statusStr = "";
+ this.init();
+ //this.updateComponent(this.id+"=baselayers.MODIS_Terra_CorrectedReflectance_TrueColor-overlays.fires48.AIRS_Dust_Score.OMI_Aerosol_Index")
+
+};
+
+/**
+ * Displays all options in HTML in an Accordion format (see JQuery UI Accordion) with the selected states being indicated
+ * by radio button and checkbox selection. All callbacks should be set. The component UI should be rendered
+ * with controllers to call the events.
+ *
+ *
+ * @this {Switch}
+ *
+*/
+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!");
+ }
+
+
+};
+
+/**
+ * Renders the UI accordion from this.items
+ *
+ *
+ * @this {Switch}
+ *
+*/
+SOTE.widget.Switch.prototype.render = function(){
+
+ this.container.innerHTML = "";
+ $('#'+this.id).addClass('switch');
+ //<ul><li><div><a></a><a></a><a></a></div></li></ul>
+ 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);
+
+ // Mark the component as ready in the registry if called via init()
+ if ((this.initRenderComplete === false) && REGISTRY) {
+ this.initRenderComplete = true;
+ }
+
+};
+
+SOTE.widget.Switch.setVal = function(o){
+ var self = o.data.self;
+ var val = o.data.val;
+ self.value = val;
+ $("#" + self.id+"current").attr("src","images/"+self.value+".png");
+ self.fire();
+};
+
+/**
+ * Fires an event to the registry when the state of the component is changed
+ *
+ * @this {Switch}
+ *
+*/
+SOTE.widget.Switch.prototype.fire = function(){
+
+ if(REGISTRY){
+ REGISTRY.fire(this);
+ }
+ else{
+ alert("No REGISTRY found! Cannot fire to REGISTRY from Switch!");
+ }
+
+};
+
+/**
+ * Sets the selected option(s) in the Switch from the passed in value(s), if valid
+ * [containerId]=[options] (options is a dot delimited string with the first item containing
+ * a single select item, and the remaining items containing the multi-select items).
+ *
+ * @this {Switch}
+ * @param {String} value is a dot delimited string of the key(s) of the option(s) to be set as selected
+ * @returns {boolean} true or false depending on if the new value(s) validates
+ *
+*/
+SOTE.widget.Switch.prototype.setValue = function(valString){
+
+ this.value = valString;
+ $("#" + this.id+"current").attr("src","images/"+this.value+".png");
+ this.validate();
+ this.fire();
+
+};
+
+/**
+ * Gets the currently selected option(s) [containerId]=[options]
+ *
+ * @this {Switch}
+ * @returns {String} [container]=[options], options being a dot delimited string
+ * representing the key(s) of the currently selected option(s)
+ *
+*/
+SOTE.widget.Switch.prototype.getValue = function(){
+
+ var returnVal = this.id + "=" + this.value;
+ return returnVal;
+};
+
+
+
+/**
+ * Change the component based on dependencies (i.e. Available Options, Selected)
+ *
+ * @this {Switch}
+ * @param {String} querystring contains all values of dependencies (from registry)
+ * @returns {boolean} true or false depending on if the selected value still validats with criteria change
+ *
+*/
+SOTE.widget.Switch.prototype.updateComponent = function(querystring){
+
+};
+
+/**
+ * Static function to handle a successful retrieval from the data accessor
+ *
+ * @this {Switch}
+ * @param {Object,String,Object,Object} data is the data passed back from the call, status is the response status, xhr is the applicable xmlhttprequest object, args are the custom arguments passed
+ *
+*/
+SOTE.widget.Switch.handleUpdateSuccess = function(self,qs){
+
+};
+
+/**
+ * Static function to handle a failed retrieval from the data accessor
+ *
+ * @this {Switch}
+ * @param {Object,String,String,Object} xhr is the applicable xmlhttprequest object, status is the response status, error is the thrown error, args are the custom arguments passed
+ *
+*/
+SOTE.widget.Switch.handleUpdateFailure = function(xhr,status,error,args){
+ alert("Failed to load data accessor: " + error);
+};
+
+
+/**
+ * Sets the selected option(s) from the query string [containerId]=[options]
+ *
+ * @this {Switch}
+ * @param {String} qs contains the querystring
+ * @returns {boolean} true or false depending on whether the new option validates
+ *
+*/
+SOTE.widget.Switch.prototype.loadFromQuery = function(qs){
+ return this.setValue(SOTE.util.extractFromQuery(this.id,qs));
+};
+
+/**
+ * Validates that the selected option(s) is not null, only one radio button is selected cross category
+ * and all options are within the scope of available options
+ *
+ * @this {Switch}
+ * @returns {boolean} true or false depending on whether the selected option(s) meet the validation criteria
+*/
+SOTE.widget.Switch.prototype.validate = function(){
+
+ var isValid = true;
+ return isValid;
+
+};
+
+/**
+ * Sets the data accessor that provides state change instructions given dependencies
+ *
+ * @this {Switch}
+ * @param {String} datasourceurl is the relative location of the data accessor
+ *
+*/
+SOTE.widget.Switch.prototype.setDataSourceUrl = function(dataSourceUrl){
+ this.dataSourceUrl = dataSourceUrl;
+};
+
+/**
+ * Gets the data accessor
+ *
+ * @this {Switch}
+ * @returns {String} the relative location of the accessor
+ *
+*/
+SOTE.widget.Switch.prototype.getDataSourceUrl = function(){
+ return this.dataSourceUrl;
+};
+
+/**
+ * Sets the status of the component
+ *
+ * @this {Switch}
+ * @param {String} s the current status of the component (user prompts, error messages)
+ *
+*/
+SOTE.widget.Switch.prototype.setStatus = function(s){
+ this.statusStr = s;
+};
+
+/**
+ * Gets the status of the component
+ *
+ * @this {Switch}
+ * @returns {String} the current status of the component (user prompts, error messages)
+ *
+*/
+SOTE.widget.Switch.prototype.getStatus = function(){
+ return this.statusStr;
+};
+