Currently I have a handle on a polygon and I set the extent of the map by doing map.setExtent(polygon.getExtent(), true);I would like to be able to move out one more level from the given extent. Meaning from the result of the setExtent operation above.I guess I could pseudocode so something like
1. map.setExtent(polygon.getExtent(), true);
2. extentDoneCallBack(map.setLevel(map.getLevel() + 1));
making use of the deferred call back of the setExtent action.Would this be the correct approach. It does not look right to me.