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); }); }