Zoom previous widget?

1511
2
05-19-2011 11:23 AM
by Anonymous User
Not applicable
Original User: RedmondGIS

Any one have one? Looking for a zoom to previous or back arrow that will display the last view scene by the user
0 Kudos
2 Replies
ReneRubalcava
Frequent Contributor
For Flexviewer? This is built in to the Navigation widget in the latest Flexviewer release. Just above the navigation slider.
0 Kudos
by Anonymous User
Not applicable
Original User: xemoka

If you want to do it inside a non-flex viewer application you'd need to:

import com.esri.ags.tools.NavigationTool;

private var navTool:NavigationTool;

navTool.zoomToPrevExtent();
navTool.zoomToNextExtent();


As seen in: http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tools/NavigationTool.html
with a working example and source @ http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=NavigationTool
0 Kudos