dojo.byId("spanCoords").innerHTML = (Math.round(mp.x * 1000) / 1000) + ", " + (Math.round(mp.y * 1000) / 1000);
dojo.connect(map, "onMouseMove", function(evt) { var mp = esri.geometry.webMercatorToGeographic(evt.mapPoint); dojo.byId("spanCoords").innerHTML = mp.x + ", " + mp.y; });
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.