Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed bug when in data download showing granules when coming in via arctic permalink

Mike McGann0b8243ff79cb
diff --git a/src/js/data/wv.data.model.js b/src/js/data/wv.data.model.js
index 5a6657aef..7572149d4 100644
--- a/src/js/data/wv.data.model.js
+++ b/src/js/data/wv.data.model.js
@@ -99,7 +99,7 @@ wv.data.model = wv.data.model || function(models, config) {
var init = function() {
models.layers.events.on("change", updateLayers);
- //models.proj.events.on("select", updateProjection);
+ models.proj.events.on("select", updateProjectionInfo);
models.date.events.on("select", updateDate);
updateLayers();
updateProjection();
@@ -417,9 +417,13 @@ wv.data.model = wv.data.model || function(models, config) {
return active;
};
- var updateProjection = function() {
+ var updateProjectionInfo = function() {
self.projection = models.proj.selected.id;
self.crs = models.proj.selected.crs;
+ };
+
+ var updateProjection = function() {
+ updateProjectionInfo();
self.events.trigger("projectionUpdate");
updateLayers();
query();