Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Set date in sote.js for the datespan to be 12/6/2011

Tilak Joshi5d7962e814f6
diff --git a/js/dateSpan.js b/js/dateSpan.js
index 19563b876..6854abbe8 100644
--- a/js/dateSpan.js
+++ b/js/dateSpan.js
@@ -59,6 +59,9 @@ SOTE.widget.DateSpan = function(containerId, config){
if(config.endDate === undefined){
config.endDate = new Date("11/30/2011");
}
+ else{
+ config.endDate = new Date(config.endDate);
+ }
if(config.range === undefined){
config.range = 5*24*60*60*1000;
diff --git a/js/sote.js b/js/sote.js
index 68e78e9fa..ca4e3fdf2 100644
--- a/js/sote.js
+++ b/js/sote.js
@@ -4,7 +4,7 @@ window.onload = function(){// Initialize "static" vars
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 map = new SOTE.widget.DateSpan("time");
+ var map = new SOTE.widget.DateSpan("time",{endDate:"12/06/2011"});
}