Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Added "running lat-lon" for polar views but instead of degrees lat-lon, the coordinates are shown in meters since that is their native unit and OL doesn't offer a quick coordinate transformation for our current polar projections

Ryan Bollereeaf51657032
diff --git a/js/map.js b/js/map.js
index d4f0be4e8..6e18c301d 100644
--- a/js/map.js
+++ b/js/map.js
@@ -412,6 +412,25 @@ SOTE.widget.Map.prototype.init = function(){
}
}));
}
+ else if (this.projection == "EPSG:3031")
+ {
+ this.map.addControl(new OpenLayers.Control.MousePosition(
+ {
+ formatOutput: function(mouseLonLat) {
+ return "EPSG:3031 coords: " + Math.round(mouseLonLat.lon) + "m, " + Math.round(mouseLonLat.lat) + "m";
+ }
+ }));
+ }
+ else if (this.projection == "EPSG:3995")
+ {
+ this.map.addControl(new OpenLayers.Control.MousePosition(
+ {
+ formatOutput: function(mouseLonLat) {
+ return "EPSG:3995 coords: " + Math.round(mouseLonLat.lon) + "m, " + Math.round(mouseLonLat.lat) + "m";
+ }
+ }));
+ }
+
// TODO: define polar projections and convert to degrees; OL doesn't know how to handle them
// else if ((this.projection == "EPSG:3995") || (this.projection == "EPSG:3031"))
// {