function showResults(candidates) { var candidate = candidates[0]; .............. geom = candidate.location; var point = new esri.geometry.Point([geom], new esri.SpatialReference({ wkid: YOUR WKID })); map.centerAndZoom(point, 16);
var point = new esri.geometry.Point([x, y], new esri.SpatialReference({ wkid: 27700 })); console.log("Zooming to location...", point, zoomLevel); map.centerAndZoom(point, zoomLevel); console.log("Zoom complete");
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.