fiallega

set zoom level one more than a given extent

Discussion created by fiallega on Mar 4, 2014
Latest reply on Mar 5, 2014 by fiallega
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.

Outcomes