Hi All,
I have a custom tool which is used to move to previous extent of the map.
it uses javascript code
Map1.ZoomToPreviousExtent();
I have another tool which runs server side code to change the extent of the map.
Map1.CurrentExtent = lyr.FeatureSource.GetBoundingBox();
now, after the map is refreshed,
ZoomToPreviousExtent() doesnt do anything.
I have investigated and found that
var nav= Map1.GetMapParser().map.getControlsByClass('OpenLayers.Control.NavigationHistory');
it only contains current extent.
is there any way to fix the problem?
I want user to be able to click previous extent and go to the extent of the map before running the server side code.
Any help will be much appreciated.
Thanks