¿Es posible cambiar esta muestra para que muestre las coordenadas x,y en wkid:5514 ?
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Create Map Display Mouse Coordinates</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.15/esri/css/esri.css">
<script src="https://js.arcgis.com/3.15/"></script>
<script>
var map;
require([
"esri/map", "esri/geometry/webMercatorUtils", "dojo/dom",
"dojo/domReady!"
], function(
Map, webMercatorUtils, dom
) {
map = new Map("map", {
basemap: "streets",
center: [-47.109, 14.945],
zoom: 2
});
map.on("load", function() {
//after map loads, connect to listen to mouse move & drag events
map.on("mouse-move", showCoordinates);
map.on("mouse-drag", showCoordinates);
});
function showCoordinates(evt) {
//the map is in web mercator but display coordinates in geographic (lat, long)
var mp = webMercatorUtils.webMercatorToGeographic(evt.mapPoint);
//display mouse coordinates
dom.byId("info").innerHTML = mp.x.toFixed(3) + ", " + mp.y.toFixed(3);
}
});
</script>