Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Cleanup of main.js

Mike McGann7e44f4f9c170
diff --git a/etc/config/config/config.json b/etc/config/config/config.json
deleted file mode 100644
index b0d4c5b5e..000000000
--- a/etc/config/config/config.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "defaultProjection": "geographic",
- "arcticProjectionChangeDate": "2013-06-06"
-}
diff --git a/etc/config/config/defaults.json b/etc/config/config/defaults.json
new file mode 100644
index 000000000..7b860709e
--- /dev/null
+++ b/etc/config/config/defaults.json
@@ -0,0 +1,3 @@
+{
+ "projection": "geographic"
+}
diff --git a/etc/config/config/echo.json b/etc/config/config/echo.json
index 9639a6a5d..bb6d7933e 100644
--- a/etc/config/config/echo.json
+++ b/etc/config/config/echo.json
@@ -16,11 +16,7 @@
"maxDistance": 270,
"eastZone": 300,
"westZone": 1380
- },
- "nrt": {
- "method": "dataCenter",
- "value": "LANCEMODIS"
- }
+ }
}
},
"terra": {
@@ -40,11 +36,7 @@
"maxDistance": 270,
"eastZone": 180,
"westZone": 1260
- },
- "nrt": {
- "method": "dataCenter",
- "value": "LANCEMODIS"
- }
+ }
}
}
}
diff --git a/src/data/config b/src/data/config
index 3a2c2a55a..8faa2ec91 100644
--- a/src/data/config
+++ b/src/data/config
@@ -1,7 +1,6 @@
{
- "config": {
- "arcticProjectionChangeDate": "2013-06-06",
- "defaultProjection": "geographic"
+ "defaults": {
+ "projection": "geographic"
},
"echo": {
"aqua": {
@@ -19,10 +18,6 @@
60
]
},
- "nrt": {
- "method": "dataCenter",
- "value": "LANCEMODIS"
- },
"time": {
"eastZone": 300,
"maxDistance": 270,
@@ -51,10 +46,6 @@
60
]
},
- "nrt": {
- "method": "dataCenter",
- "value": "LANCEMODIS"
- },
"time": {
"eastZone": 180,
"maxDistance": 270,
@@ -51049,6 +51040,42 @@
]
}
},
+ "products": {
+ "MOD04_L2": {
+ "echo": {
+ "dataCenterId": [
+ "LAADS",
+ "LANCEMODIS"
+ ],
+ "filter-options": {
+ "nrt": {
+ "method": "dataCenter",
+ "value": "LANCEMODIS"
+ }
+ },
+ "method": "terra",
+ "shortName": "MOD04_L2"
+ },
+ "name": "MODIS/Terra Aerosol 5-Min L2 Swath 10km"
+ },
+ "MYD04_L2": {
+ "echo": {
+ "dataCenterId": [
+ "LAADS",
+ "LANCEMODIS"
+ ],
+ "filter-options": {
+ "nrt": {
+ "method": "dataCenter",
+ "value": "LANCEMODIS"
+ }
+ },
+ "method": "aqua",
+ "shortName": "MYD04_L2"
+ },
+ "name": "MODIS/Aqua Aerosol 5-Min L2 Swath 10km"
+ }
+ },
"projections": {
"antarctic": {
"echo": {
diff --git a/src/js/Worldview.js b/src/js/Worldview.js
index 77467e8b2..62e54798b 100644
--- a/src/js/Worldview.js
+++ b/src/js/Worldview.js
@@ -44,6 +44,9 @@
*/
ns.GIBS_HOUR_DELAY = 3;
+ // June 6, 2013
+ ns.ARCTIC_PROJECTION_CHANGE_DATE = new Date(Date.UTC(05, 06, 2013));
+
/**
* Determines if Worldview is being run in development mode.
*
diff --git a/src/js/Worldview/Support.js b/src/js/Worldview/Support.js
index 041b9310c..9d8e60893 100644
--- a/src/js/Worldview/Support.js
+++ b/src/js/Worldview/Support.js
@@ -14,6 +14,7 @@ Worldview.namespace("Support");
(function(ns) {
var log = Logging.getLogger();
+ var mobileSafari = false;
ns.BROWSER = null;
ns.VERSION = [];
@@ -50,6 +51,8 @@ Worldview.namespace("Support");
ns.quirks = function() {
jQueryLayerFix();
shimConsole();
+ checkMobile();
+ fixSize();
};
var init = function() {
@@ -94,6 +97,59 @@ Worldview.namespace("Support");
}
};
+ // Get rid of address bar on iphone/ipod
+ var fixSize = function() {
+ var execute = function() {
+ window.scrollTo(0,0);
+ document.body.style.height = '100%';
+ if (!(/(iphone|ipod)/.test(navigator.userAgent.toLowerCase()))) {
+ if (document.body.parentNode) {
+ document.body.parentNode.style.height = '100%';
+ }
+ }
+ }
+ setTimeout(execute, 700);
+ setTimeout(execute, 1500);
+ };
+
+ var hideURLbar = function() {
+ window.scrollTo(0, 1);
+ };
+
+ var checkMobile = function() {
+ if (navigator.userAgent.indexOf('iPhone') != -1 || navigator.userAgent.indexOf('Android') != -1) {
+ // In Safari, the true version is after "Safari"
+ if (navigator.userAgent.indexOf('Safari')!=-1) {
+ // Set a variable to use later
+ mobileSafari = true;
+ }
+ addEventListener("load", function() {
+ setTimeout(hideURLbar, 0);
+ }, false);
+ addEventListener("orientationchange", function() {
+ setTimeout(hideURLbar, 0);
+ }, false);
+ }
+
+ // Set the div height
+ function setHeight($body) {
+ if (navigator.userAgent.indexOf('iPhone') != -1 && navigator.userAgent.indexOf('Safari')!=-1) {
+ var new_height = $(window).height();
+ // if mobileSafari add +60px
+ new_height += 60;
+ $body.css('min-height', 0 );
+ $body.css('height', new_height );
+
+ }
+
+ }
+
+ setHeight( $('#mappage') );
+ $(window).resize(function() {
+ setHeight($('#mappage'));
+ });
+ };
+
init();
})(Worldview.Support);
diff --git a/src/js/Worldview/Widget/ArcticProjectionChangeNotification.js b/src/js/Worldview/Widget/ArcticProjectionChangeNotification.js
index 1e3628e57..e0a4312bc 100644
--- a/src/js/Worldview/Widget/ArcticProjectionChangeNotification.js
+++ b/src/js/Worldview/Widget/ArcticProjectionChangeNotification.js
@@ -54,13 +54,12 @@ Worldview.Widget.ArcticProjectionChangeNotification = function(config, bank) {
log.error("Storage engine not available");
}
- var changeDate = config.config.arcticProjectionChangeDate;
+ self.changeDate = Worldview.ARCTIC_PROJECTION_CHANGE_DATE;
if ( storageEngine && storageEngine.getItem(self.containerId) ) {
log.debug(self.containerId + ": already notified");
showNotice = false;
}
- if ( changeDate ) {
- self.changeDate = Date.parseISOString(changeDate);
+ if ( self.changeDate ) {
REGISTRY.register(self.containerId, self);
REGISTRY.markComponentReady(self.containerId);
log.debug(self.containerId + ": watching");
diff --git a/src/js/Worldview/Widget/EPSG.js b/src/js/Worldview/Widget/EPSG.js
index fb4c862fc..057481c10 100644
--- a/src/js/Worldview/Widget/EPSG.js
+++ b/src/js/Worldview/Widget/EPSG.js
@@ -21,13 +21,9 @@ Worldview.Widget.EPSG = function(config) {
var changeDate = null;
var init = function() {
- var changeDateString = config.config.arcticProjectionChangeDate;
- if ( changeDateString ) {
- changeDate = Date.parseISOString(changeDateString).clearUTCTime();
- }
+ changeDate = Worldview.ARCTIC_PROJECTION_CHANGE_DATE;
REGISTRY.register(self.containerId, self);
REGISTRY.markComponentReady(self.containerId);
-
};
self.getValue = function() {
diff --git a/src/js/Worldview/Widget/Map.js b/src/js/Worldview/Widget/Map.js
index 7bb873f60..7d9b20f8a 100644
--- a/src/js/Worldview/Widget/Map.js
+++ b/src/js/Worldview/Widget/Map.js
@@ -184,16 +184,16 @@ Worldview.Widget.Map = function(containerId, config) {
* configuration.
*/
var validateConfig = function(config) {
- var root = ["config", "projections", "layers"];
+ var root = ["defaults", "projections", "layers"];
$.each(root, function(index, key) {
if ( !config.hasOwnProperty(key) ) {
throw key + " is required in the map configuration";
}
});
- var _config = ["defaultProjection"];
+ var _config = ["projection"];
$.each(_config, function(index, key) {
- if ( !(key in config.config) ) {
- throw new Error("config." + key + " is required in the " +
+ if ( !(key in config.defaults ) ) {
+ throw new Error("defaults." + key + " is required for the " +
"map configuraiton");
}
});
diff --git a/src/js/Worldview/Widget/WorldviewMap.js b/src/js/Worldview/Widget/WorldviewMap.js
index e94a916c7..d3e61e416 100644
--- a/src/js/Worldview/Widget/WorldviewMap.js
+++ b/src/js/Worldview/Widget/WorldviewMap.js
@@ -84,7 +84,7 @@ Worldview.Widget.WorldviewMap = function(containerId, config) {
var projection = state.projection;
if ( !(projection in self.maps.mapConfig.projections) ) {
var defaultProjection =
- self.maps.mapConfig.config.defaultProjection;
+ self.maps.mapConfig.defaults.projection;
log.warn("Invalid projection: " + projection + ", using: " +
defaultProjection);
projection = defaultProjection;
diff --git a/src/js/main.js b/src/js/main.js
index f9d960060..75b58f144 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -1,49 +1,6 @@
$(function() {// Initialize "static" vars
var log = Logging.getLogger();
- var selector;
- var mobileSafari = false;
-
- var hideURLbar = function() {
- /*if(document.documentElement.scrollHeight<window.outerHeight/window.devicePixelRatio)
- document.documentElement.style.height=(window.outerHeight/window.devicePixelRatio)+'px';
- setTimeout(window.scrollTo(1,1),0);*/
- window.scrollTo(0, 1);
- };
-
- var checkMobile = function() {
- if (navigator.userAgent.indexOf('iPhone') != -1 || navigator.userAgent.indexOf('Android') != -1) {
- // In Safari, the true version is after "Safari"
- if (navigator.userAgent.indexOf('Safari')!=-1) {
- // Set a variable to use later
- mobileSafari = true;
- }
- addEventListener("load", function() {
- setTimeout(hideURLbar, 0);
- }, false);
- addEventListener("orientationchange", function() {
- setTimeout(hideURLbar, 0);
- }, false);
- }
-
- // Set the div height
- function setHeight($body) {
- if (navigator.userAgent.indexOf('iPhone') != -1 && navigator.userAgent.indexOf('Safari')!=-1) {
- var new_height = $(window).height();
- // if mobileSafari add +60px
- new_height += 60;
- $body.css('min-height', 0 );
- $body.css('height', new_height );
-
- }
-
- }
-
- setHeight( $('#mappage') );
- $(window).resize(function() {
- setHeight($('#mappage'));
- });
- };
var entryPoint = function() {
Worldview.Events.errorHandler = function(error) {
@@ -51,18 +8,7 @@ $(function() {// Initialize "static" vars
};
Worldview.Support.quirks();
-
- var query = Worldview.queryStringToObject(location.search);
- if ( query.now ) {
- try {
- var now = Date.parseISOString(query.now);
- Worldview.overrideNow(now);
- log.warn("Overriding now: " + now.toISOString());
- } catch ( error ) {
- log.error("Invalid now: " + query.now, error);
- }
- }
-
+
$.get("notice.txt", function(message) {
var html = message.replace(/\n/g, "<br/>");
Worldview.notify(html);
@@ -88,101 +34,106 @@ $(function() {// Initialize "static" vars
"images/activity.gif"
]).execute(onLoad);
};
-
- var init = function(config) {
-
- checkMobile();
- //console.log("init");
-
- //$('#products').tabs();
-
- /*selector = new YAHOO.widget.Panel("selector", { zIndex:1019, visible:false } );
- selector.setBody("<div id='selectorbox'></div>");
- selector.render(document.body);
- var sel_id = selector.id;
- selector.beforeHideEvent.subscribe(function(e){ $("#"+sel_id).css("display","none");})
- //selector.beforeHideEvent.subscribe(closeSelector);
- selector.beforeShowEvent.subscribe(function(e){$("#"+sel_id).css("display","block");})
- //this.selector.subscribe("beforeHide", closeSelector);*/
- // Create map
- var m = Worldview.Widget.WorldviewMap("map", config);
- window.config = config;
- window.palettes = Worldview.Widget.Palette("palettes", config, {alignTo: "#products"});
- var ss = new SOTE.widget.Switch("switch",{dataSourceUrl:"a",selected:"geographic"});
- var p = new SOTE.widget.Products("productsHolder");
- window.p = p;
- //var a = new SOTE.widget.Bank("products",{paletteWidget: palettes, dataSourceUrl:"ap_products.php",title:"My Layers",selected:{antarctic:"baselayers,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,antarctic_coastlines", arctic:"baselayers,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,arctic_coastlines",geographic:"baselayers,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,sedac_bound"},categories:["Base Layers","Overlays"],callback:showSelector,selector:selector,config:config});
- //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.DatePicker("time",{hasThumbnail:false});
+ var onLoad = function(queue) {
+ try {
+ var config = queue.getResult("config");
+ init(config);
+ } catch ( error ) {
+ Worldview.error("Unable to start Worldview", error);
+ }
+ };
+
+ var init = function(config) {
+ config.parameters = Worldview.queryStringToObject(location.search);
+ debuggingFeatures(config);
+
+ var dataDownloadModel = Worldview.DataDownload.Model(config);
- //Image download variables
- rb = new SOTE.widget.RubberBand("camera",{icon:"images/camera.png",onicon:"images/cameraon.png",cropee:"map",paletteWidget:palettes,mapWidget:m});
- var id = new SOTE.widget.ImageDownload("imagedownload",{baseLayer:"MODIS_Terra_CorrectedReflectance_TrueColor",alignTo: rb, m:m});
- var apcn = new Worldview.Widget.ArcticProjectionChangeNotification(config, p.b);
+ // Create widgets
+ var map = Worldview.Widget.WorldviewMap("map", config);
+ var palettes = Worldview.Widget.Palette("palettes", config, {
+ alignTo: "#products"
+ });
+ var projection = new SOTE.widget.Switch("switch", {
+ dataSourceUrl:"a",
+ selected:"geographic"
+ });
+ var products = new SOTE.widget.Products("productsHolder", {
+ paletteWidget: palettes,
+ config: config
+ });
+ var date = new SOTE.widget.DatePicker("time", {
+ hasThumbnail: false
+ });
+ var rubberBand = new SOTE.widget.RubberBand("camera", {
+ icon: "images/camera.png",
+ onicon: "images/cameraon.png",
+ cropee: "map",
+ paletteWidget: palettes,
+ mapWidget: map
+ });
+ var imageDownload = new SOTE.widget.ImageDownload("imagedownload", {
+ baseLayer: "MODIS_Terra_CorrectedReflectance_TrueColor",
+ alignTo: rubberBand,
+ m: map
+ });
+ var apcn = new Worldview.Widget.ArcticProjectionChangeNotification(
+ config, products.b
+ );
var opacity = new Worldview.Widget.Opacity(config);
var epsg = new Worldview.Widget.EPSG(config);
-
- var ev = new SOTE.widget.Events("eventsHolder", {mapWidget:m,
- paletteWidget:palettes,
- switchWidget:ss,
- bankWidget:p,
- dateWidget:map,
- apcmWidget:apcn,
- wvOpacity:opacity,
- wvEPSG:epsg});
-
- var dataDownloadModel = Worldview.DataDownload.Model(config);
- var dataDownloadWidget = Worldview.Widget.DataDownload({
+ var events = new SOTE.widget.Events("eventsHolder", {
+ mapWidget: map,
+ paletteWidget: palettes,
+ switchWidget: projection,
+ bankWidget: products,
+ dateWidget: date,
+ apcmWidget: apcn,
+ wvOpacity: opacity,
+ wvEPSG: epsg
+ });
+ var dataDownload = Worldview.Widget.DataDownload({
selector: ".dataDownload-modeButton",
model: dataDownloadModel,
config: config,
- maps: m.maps
+ maps: map.maps
});
- // Get rid of address bar on iphone/ipod
- var fixSize = function() {
- window.scrollTo(0,0);
- document.body.style.height = '100%';
- if (!(/(iphone|ipod)/.test(navigator.userAgent.toLowerCase()))) {
- if (document.body.parentNode) {
- document.body.parentNode.style.height = '100%';
- }
- }
- };
- setTimeout(fixSize, 700);
- setTimeout(fixSize, 1500);
-
- REGISTRY.addEventListener("time", "map", "imagedownload",
- apcn.containerId, epsg.containerId,
- dataDownloadWidget.containerId);
- REGISTRY.addEventListener("switch", "map", "products", "selectorbox",
- "imagedownload", "camera", apcn.containerId, epsg.containerId,
- dataDownloadWidget.containerId);
- REGISTRY.addEventListener("products", "map", "selectorbox",
- "imagedownload", "palettes", apcn.containerId,
- dataDownloadWidget.containerId);
+ // Register event listeners
+ REGISTRY.addEventListener("time",
+ "map", "imagedownload", apcn.containerId, epsg.containerId,
+ dataDownload.containerId);
+ REGISTRY.addEventListener("switch",
+ "map", "products", "selectorbox", "imagedownload", "camera",
+ apcn.containerId, epsg.containerId, dataDownload.containerId);
+ REGISTRY.addEventListener("products",
+ "map", "selectorbox", "imagedownload", "palettes",
+ apcn.containerId, dataDownload.containerId);
REGISTRY.addEventListener("selectorbox","products");
REGISTRY.addEventListener("camera","imagedownload");
REGISTRY.addEventListener("palettes","map","camera","products");
REGISTRY.addEventListener("opacity", "map");
REGISTRY.addEventListener(epsg.containerId, "imagedownload");
-
- Worldview.opacity = opacity;
- Worldview.view = m;
+
+ // These are only convienence handles to important objects used
+ // for console debugging. Code should NOT reference these as they
+ // are subject to change or removal.
+ Worldview.config = config;
+ Worldview.opacity = opacity;
+ Worldview.palettes = palettes;
+ Worldview.view = map;
Worldview.ddm = dataDownloadModel;
- Worldview.maps = m.maps;
+ Worldview.maps = map.maps;
var queryString =
Worldview.Permalink.decode(window.location.search.substring(1));
var initOrder = [
- ss, // projection
- p.b, // products
- map, // time
- m, // map
+ projection,
+ products.b, // bank
+ date,
+ map,
palettes,
apcn,
opacity,
@@ -215,24 +166,29 @@ $(function() {// Initialize "static" vars
}
};
- var onLoad = function(queue) {
- try {
- var config = queue.getResult("config");
- if ( Worldview.isDevelopment() ) {
- var debugPalette = Worldview.Palette.Palette({
- id: "__DEBUG",
- name: "Debug",
- stops: [{at: 0, r: 0, g: 0, b: 0, a: 0}]
- });
- config.palettes["__DEBUG"] = debugPalette;
- config.paletteOrder.unshift("__DEBUG");
- }
- config.parameters = Worldview.queryStringToObject(location.search);
- Worldview.config = config;
- init(Worldview.config);
- } catch ( error ) {
- Worldview.error("Unable to start Worldview", error);
+ var debuggingFeatures = function(config) {
+ // Allow the current day to be overridden
+ if ( config.parameters.now ) {
+ try {
+ var now = Date.parseISOString(config.parameters.now);
+ Worldview.overrideNow(now);
+ log.warn("Overriding now: " + now.toISOString());
+ } catch ( error ) {
+ log.error("Invalid now: " + query.now, error);
+ }
}
+
+ // Install a black palette which can be used to find "holes" in
+ // LUT mappings.
+ if ( Worldview.isDevelopment() ) {
+ var debugPalette = Worldview.Palette.Palette({
+ id: "__DEBUG",
+ name: "Debug",
+ stops: [{at: 0, r: 0, g: 0, b: 0, a: 0}]
+ });
+ config.palettes["__DEBUG"] = debugPalette;
+ config.paletteOrder.unshift("__DEBUG");
+ }
};
try {
@@ -240,5 +196,5 @@ $(function() {// Initialize "static" vars
} catch ( cause ) {
Worldview.error("Failed to start Worldview", cause);
}
-
+
});
diff --git a/src/js/products.js b/src/js/products.js
index 46f212faf..cd097e99b 100644
--- a/src/js/products.js
+++ b/src/js/products.js
@@ -61,6 +61,8 @@ SOTE.widget.Products = function(containerId, config){
this.dataSourceUrl = config.dataSourceUrl;
this.categories = config.categories;
this.initRenderComplete = false;
+ this.paletteWidget = config.paletteWidget;
+ this.config = config.config;
this.init();
}
@@ -128,8 +130,27 @@ SOTE.widget.Products.prototype.render = function(){
//this.container.appendChild(productContainer);
$('#'+this.id).tabs({show: SOTE.widget.Products.change});
- this.b = new SOTE.widget.Bank("products",{paletteWidget: window.palettes, dataSourceUrl:"ap_products.php",title:"My Layers",selected:{antarctic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,antarctic_coastlines", arctic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,arctic_coastlines",geographic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,sedac_bound"},categories:["Base Layers","Overlays"],config:window.config});
- this.s = new SOTE.widget.Selector("selectorbox",{dataSourceUrl:"ap_products.php",categories:["Base Layers","Overlays"],selected:{antarctic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,antarctic_coastlines", arctic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,arctic_coastlines",geographic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,sedac_bound"}});
+ this.b = new SOTE.widget.Bank("products", {
+ paletteWidget: this.paletteWidget,
+ dataSourceUrl: "ap_products.php",
+ title: "My Layers",
+ selected: {
+ antarctic: "baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,antarctic_coastlines",
+ arctic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,arctic_coastlines",
+ geographic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,sedac_bound"
+ },
+ categories:["Base Layers","Overlays"],
+ config: this.config
+ });
+ this.s = new SOTE.widget.Selector("selectorbox", {
+ dataSourceUrl: "ap_products.php",
+ categories: ["Base Layers","Overlays"],
+ selected: {
+ antarctic: "baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,antarctic_coastlines",
+ arctic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,arctic_coastlines",
+ geographic:"baselayers,!MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,sedac_bound"
+ }
+ });
//$('#'+this.id+"prods").on("tabsshow",SOTE.widget.Products.change);
$('.accordionToggler').bind('click',{self:this},SOTE.widget.Products.toggle);