Interactive interface for browsing global, full-resolution satellite imagery
WV-128: By changing now to Feb 15, the slider would not allow you to select the 16th through the 28th, but would allow selection of the 29th to the 31st. This has been fixed.
Mike McGann9c18ade246f2
diff --git a/js/Worldview/Map/ProductMap.js b/js/Worldview/Map/ProductMap.jsindex 053b751cb..e83b2b93c 100644--- a/js/Worldview/Map/ProductMap.js+++ b/js/Worldview/Map/ProductMap.js@@ -102,7 +102,6 @@ Worldview.Map.ProductMap = function(containerId, mapConfig, component) {maxResolution: 0.5625,units: config.units || "dd"};- log.info(options)var blankLayer = new OpenLayers.Layer("Blank", options);newMap.addLayer(blankLayer);diff --git a/js/dateSpan.js b/js/dateSpan.jsindex b6ed03639..9584d24cd 100644--- a/js/dateSpan.js+++ b/js/dateSpan.js@@ -108,7 +108,6 @@ SOTE.widget.DateSpan = function(containerId, config){this.maps = [];this.startDate = config.startDate;this.endDate = config.endDate;- console.log("start", this.startDate.toISOString(), "end", this.endDate.toISOString());this.range = config.range; //in millisecondsthis.isCollapsed = config.isCollapsed;this.slideToSelect = config.slideToSelect;@@ -283,6 +282,7 @@ SOTE.widget.DateSpan.prototype.fire = function(){SOTE.widget.DateSpan.handleSlide = function(e,ui){+ console.log("handleSlide");var value = e.target.value;var type = e.data.type;var self = e.data.self;@@ -312,7 +312,6 @@ SOTE.widget.DateSpan.handleSlide = function(e,ui){newDate.setUTCDate(self.sliders[type][displacement]);}else {- newDate.seUTCtDate(self.months[self.value.getUTCMonth()]);self.setValue(newDate.toISOString());}}@@ -374,6 +373,7 @@ SOTE.widget.DateSpan.toggle = function(e,ui){};SOTE.widget.DateSpan.snap = function(e,ui){+ console.log("snap");var self = e.data.self;var type = e.data.type;var numitems = self.sliders[type].length;@@ -406,8 +406,8 @@ SOTE.widget.DateSpan.snap = function(e,ui){newDate.setUTCDate(self.sliders[type][displacement]);}else {- newDate.setUTCDate(self.months[self.value.getUTCMonth()]);- self.setValue(newDate.toISOString());+ newDate = this.value.clone();+ self.setValue(newDate);}}@@ -484,7 +484,6 @@ SOTE.widget.DateSpan.prototype.setValue = function(value){if(d.getTime() < this.startDate.getTime()) {d = this.startDate;}- console.log("now", d.toISOString(), "start", this.startDate.toISOString(), "end", this.endDate.toISOString());if(d.getTime() <= this.endDate.getTime() &&d.getTime() >= this.startDate.getTime()) {var changed = false;@@ -524,8 +523,6 @@ SOTE.widget.DateSpan.prototype.setValue = function(value){"data at this time. The date has been adjusted to today.");*/} else if ( d.getTime() >= this.endDate.getTime() ) {- console.log("**********");- throw Error("BLAH");SOTE.util.throwError("Data is not available for " + thisDay +" yet. Try again later. The date has been adjusted to today.")}