Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed bug where CRS was taken from proj.change when not active

Mike McGann00992aafda2e
diff --git a/src/js/map/wv.map.ui.js b/src/js/map/wv.map.ui.js
index a9f06cfeb..0ad9d2086 100644
--- a/src/js/map/wv.map.ui.js
+++ b/src/js/map/wv.map.ui.js
@@ -493,11 +493,13 @@ wv.map.ui = wv.map.ui || function(models, config) {
var coordinateControl = new OpenLayers.Control.MousePosition({
formatOutput: function(mouseXY) {
var mouseLonLat = mouseXY.transform(proj.crs, "EPSG:4326");
+ // FIXME: Change back to projection model after
+ // arctic has been backfilled
+ var crs = ( models.proj.change ) ? models.proj.change.crs
+ : models.proj.selected.crs;
return mouseLonLat.lon.toFixed(3) + "°, " +
mouseLonLat.lat.toFixed(3) + "° " +
- // FIXME: Change back to projection model after
- // arctic has been backfilled
- models.proj.change.crs;
+ crs;
}
});
controls.push(coordinateControl);