Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Remove proj.change logic from various modules #821

Benjamin Kingb7bc4551868c
diff --git a/web/js/animation/gif.js b/web/js/animation/gif.js
index 12a33c5bb..ad7d2f140 100644
--- a/web/js/animation/gif.js
+++ b/web/js/animation/gif.js
@@ -532,7 +532,7 @@ export function animationGif(models, config, ui) {
var layers;
var proj = models.proj.selected.id;
var opacities;
- var epsg = (models.proj.change) ? models.proj.change.epsg : models.proj.selected.epsg;
+ var epsg = models.proj.selected.epsg;
var products = getProducts();
var intervalAmount = 1;
diff --git a/web/js/image/panel.js b/web/js/image/panel.js
index 29a7f37a8..4674d7df9 100644
--- a/web/js/image/panel.js
+++ b/web/js/image/panel.js
@@ -284,12 +284,6 @@ export function imagePanel (models, ui, config, dialogConfig) {
util.error(cause);
}
};
- var getEPSG = function() {
- // NOTE: This needs to be changed back to the projection model
- // when the backfill removes the old projection.
-
- return (models.proj.change) ? models.proj.change.epsg : models.proj.selected.epsg;
- };
/*
* Sets labels of bounding box of Jcrop
* selector
@@ -359,7 +353,7 @@ export function imagePanel (models, ui, config, dialogConfig) {
reverse: true,
renderable: true
});
- dlURL = createDownloadURL(models.date.selected, lonlats, getEPSG(), products, getLayerOpacities(products), url);
+ dlURL = createDownloadURL(models.date.selected, lonlats, models.proj.selected.epsg, products, getLayerOpacities(products), url);
googleAnalytics.event('Image Download', 'Click', 'Download');
util.metrics('lc=' + encodeURIComponent(dlURL + '&worldfile=' + imgWorldfile + '&format=' + imgFormat + '&width=' + imgWidth + '&height=' + imgHeight));
window.open(dlURL + '&worldfile=' + imgWorldfile + '&format=' + imgFormat + '&width=' + imgWidth + '&height=' + imgHeight, '_blank');
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index cb9883047..bd75e8583 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -779,8 +779,7 @@ export function mapui(models, config) {
*/
coordinateFormat = function (source, format, outsideExtent) {
var target, crs;
- crs = (models.proj.change) ? models.proj.change.crs
- : models.proj.selected.crs;
+ crs = models.proj.selected.crs;
if (outsideExtent) {
return crs;
}