can i convert the lat/longs to meters

المشرف العام

Administrator
طاقم الإدارة
I have placed coordinates in my map,but i want these in meters.Please help me how to convert these.

Simple Map html,body,#map{ height:100%; width:100% } var map,overviewMapDijit;

require(["esri/map", "esri/dijit/OverviewMap", "dojo/parser", "esri/geometry/webMercatorUtils", "dojo/dom", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!"], function(Map,OverviewMap,parser,webMercatorUtils,dom) { parser.parse(); map = new Map("map", { basemap: "streets", center: [82.45, 22.75], zoom: 5 }); overviewMapDijit = new OverviewMap({ map: map, visible: true }); overviewMapDijit.startup(); map.on("load", function() { map.on("mouse-move", showCoordinates); map.on("mouse-drag", showCoordinates); }); function showCoordinates(evt) { var mp = webMercatorUtils.webMercatorToGeographic(evt.mapPoint); dom.byId("info").innerHTML = mp.x.toFixed(5) + ", " + mp.y.toFixed(5); } });




أكثر...
 
أعلى