Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

The menuPicker.js instances in sote.js now use php data accessors. Removed obsolete .json data accessors.

Stephen Kreislerf52f31d6038d
diff --git a/data/mp_hazard.json b/data/mp_hazard.json
deleted file mode 100644
index 913ef1cd7..000000000
--- a/data/mp_hazard.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "items": [
- {
- "label": "Wildfires",
- "value": "wf",
- "disabled": true
- },
- {
- "label": "Air Quality",
- "value": "aq",
- "disabled": true
- },
- {
- "label": "Agriculture",
- "value": "ag",
- "disabled": true
- },
- {
- "label": "Smoke Plumes",
- "value": "sp",
- "disabled": true
- },
- {
- "label": "Vegetation",
- "value": "veg",
- "disabled": true
- },
- {
- "label": "Dust Storms",
- "value": "DustStorms"
- }
- ]
-}
\ No newline at end of file
diff --git a/data/mp_transition.json b/data/mp_transition.json
deleted file mode 100644
index 34c4b1657..000000000
--- a/data/mp_transition.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "items": [
- {
- "label": "Standard",
- "value": "sta"
- },
- {
- "label": "Crossfader",
- "value": "cro",
- "disabled": true
- },
- {
- "label": "Vertical Slider Bar",
- "value": "vsb",
- "disabled": true
- },
- {
- "label": "Data Probe",
- "value": "dp",
- "disabled": true
- },
- {
- "label": "Download",
- "value": "dow",
- "disabled": true
- }
- ]
-}
\ No newline at end of file
diff --git a/js/sote.js b/js/sote.js
index 243dfc2fd..48023bb7f 100644
--- a/js/sote.js
+++ b/js/sote.js
@@ -2,8 +2,8 @@ window.onload = function(){// Initialize "static" vars
// Create map
var m = new SOTE.widget.MapSote("map",{baseLayer:"Terra_MODIS"});
var a = new SOTE.widget.AccordionPicker("products",{dataSourceUrl:"data/ap.json"});
- var h = new SOTE.widget.MenuPicker("hazard",{dataSourceUrl:"data/mp_hazard.json"});
- //var tr = new SOTE.widget.MenuPicker("transition",{dataSourceUrl:"data/mp_transition.json",selected:"sta"});
+ 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");
}