<script src="http://js.arcgis.com/3.7/"></script> <script> var map; require(["esri/map","dojox/mobile","dojo/domReady!"], function(Map, dojoxMobile){ map = new Map("map", {basemap: "topo", center: [-59.48, 44.066], zoom: 4}); map.on("click",function(evt){ console.log("mapPoint: " + evt.mapPoint.x + ", " + evt.mapPoint.y); console.log("evt: " + evt.x + ", " + evt.y); alert("mapPoint: " + evt.mapPoint.x + ", " + evt.mapPoint.y + "\nevt: " + evt.y + ", " + evt.x); }); }); </script>
document.dojoClick = false;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.