function reduceExtent(geom) { // Adjust the current extent to the specified scale where we can see // abstracts myMap.setExtent(esri.geometry.getExtentForScale(myMap, 44315.3858)); // Wait until the extent change has completed var tempHook = dojo.connect(parcelMap, "onUpdateEnd", function() { // Pan to the selected abstract myMap.centerAt(geom.getExtent().getCenter()); // Dispose of the temporary listener dojo.disconnect(tempHook); }); }
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.