The Oscar PreviousView control keeps track of map movements and allows user to go back to a previous view.
| Inherits from: | <OpenLayers.Control.Button> |
| oscar. | The Oscar PreviousView control keeps track of map movements and allows user to go back to a previous view. |
| Properties | |
| previous {<OpenLayers. | trigger method restores the previous state managed by this control. |
| limit | {Integer} Optional limit on the number of history items to retain. |
| Constructor | |
| oscar. | |
| Functions | |
| trigger Restore the previous state. If no items are in the | previous history stack, this has no effect. |
| destroy | Destroy the control. |
| setMap | Set the map property for the control and <previous> and <next> child controls. |
| draw | Called when the control is added to the map. |
| clear | Clear history. |
| activate Activate the control. | Returns: {Boolean} Control successfully activated. |
| deactivate Deactivate the control. This unregisters any | listeners. |
| Constants | |
| CLASS_NAME - oscar. |
Destroy the control.
destroy : function()
Set the map property for the control and previous and <next> child controls.
setMap : function( map )
Called when the control is added to the map.
draw : function()
Clear history.
clear : function()