function zoomRow(id) { selectionLayer.clear(); dojo.some(map.graphics.graphics, function (graphic) { if (graphic.hasOwnProperty("attributes") && graphic.attributes.hasOwnProperty("OBJECTID") && graphic.attributes.OBJECTID.toString() === id) { var selectedState = new esri.Graphic(graphic.geometry) .setAttributes( graphic.attributes); selectionLayer.add(selectedState); //Zoom to the extent of the parcel - expand it a bit so we aren't zoomed in too close. var stateExtent = selectedState.geometry.getExtent(); map.setExtent(stateExtent); return true; } }); }
esri.config.defaults.io.proxyUrl = "/proxy.ashx"; esri.config.defaults.io.alwaysUseProxy = false; ... esri.config.defaults.map.zoomRate
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.