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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.