Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

merged from stashed version

Beth Timmons8b437ed4621e
diff --git a/js/Worldview/Map/StaticProduct.js b/js/Worldview/Map/StaticProduct.js
index ac2ca78d4..b00e486ff 100644
--- a/js/Worldview/Map/StaticProduct.js
+++ b/js/Worldview/Map/StaticProduct.js
@@ -59,11 +59,11 @@ Worldview.Map.StaticProduct = function(map, config) {
self.opacity = opacity;
Worldview.Map.setOpacity(layer, opacity);
};
-
+
self.setVisibility = function(value) {
layer.setVisibility(value);
};
-
+
/**
* Method: setZIndex
* Sets the z-index for the product's layer.
diff --git a/js/Worldview/Widget/WorldviewMap.js b/js/Worldview/Widget/WorldviewMap.js
index 4571b056f..ddbb8b2bf 100644
--- a/js/Worldview/Widget/WorldviewMap.js
+++ b/js/Worldview/Widget/WorldviewMap.js
@@ -72,7 +72,9 @@ Worldview.Widget.WorldviewMap = function(containerId, config) {
return;
}
log.debug("WorldviewMap: updateComponent", queryString);
+
var state = REGISTRY.getState(queryString);
+
log.debug(state);
if ( state.projection !== undefined &&
diff --git a/js/bank.js b/js/bank.js
index 7cbf411a5..de7d1c193 100644
--- a/js/bank.js
+++ b/js/bank.js
@@ -55,12 +55,10 @@ SOTE.widget.Bank = function(containerId, config){
this.state = config.state;
- console.log("state: " + this.state);
this.selected = config.selected;
this.values = this.unserialize(this.selected[this.state]);
this.dataSourceUrl = config.dataSourceUrl;
- console.log("dataSourceUrl: " + this.dataSourceUrl);
this.title = config.title;
this.callback = config.callback;
this.selector = config.selector;
@@ -105,12 +103,7 @@ SOTE.widget.Bank.handleMetaSuccess = function(data,status,xhr,args){
}
}
- /* TODO: This breaks when switching to polar projections
- var key = data["Floods"][0].value;
- console.log("Key = " + key);
- console.log("Meta Label = " + self.meta[key].label);
- console.log("Meta Sublabel = " + self.meta[key].sublabel);
- */
+
$.each(self.meta, function(name, meta) {
if ( name in self.config.products ) {
var product = self.config.products[name];
diff --git a/js/imageDownload.js b/js/imageDownload.js
index e3d3cd77e..434cbd66b 100644
--- a/js/imageDownload.js
+++ b/js/imageDownload.js
@@ -130,9 +130,9 @@ SOTE.widget.ImageDownload.prototype.updateComponent = function(qs){
var x1 = px[0]; var y1= px[1]; var x2 = px[2]; var y2=px[3];
var lonlat1 = this.m.productMap.map.getLonLatFromViewPortPx(new OpenLayers.Pixel(Math.floor(x1), Math.floor(y2)));
var lonlat2 = this.m.productMap.map.getLonLatFromViewPortPx(new OpenLayers.Pixel(Math.floor(x2), Math.floor(y1)));
-
+
var dlURL = "http://map2.vis.earthdata.nasa.gov/imagegen/index.php?";
-
+
var conversionFactor = 256;
if (s=="geographic") {
if( !(0 != $('#selImgFormat option[value=KMZ]').length)) {