oscar.Control.PreviousView

The Oscar PreviousView control keeps track of map movements and allows user to go back to a previous view.

Inherits from:<OpenLayers.Control.Button>
Summary
oscar.Control.PreviousViewThe Oscar PreviousView control keeps track of map movements and allows user to go back to a previous view.
Properties
previous {<OpenLayers.Control>} A button type control whosetrigger method restores the previous state managed by this control.
limit{Integer} Optional limit on the number of history items to retain.
Constructor
oscar.Control.PreviousView
Functions
trigger Restore the previous state.  If no items are in theprevious history stack, this has no effect.
destroyDestroy the control.
setMapSet the map property for the control and <previous> and &lt;next&gt; child controls.
drawCalled when the control is added to the map.
clearClear history.
activate Activate the control.Returns: {Boolean} Control successfully activated.
deactivate Deactivate the control.  This unregisters anylisteners.
Constants
CLASS_NAME - oscar.Control.PreviousView

Properties

previous {<OpenLayers.Control>} A button type control whose

trigger method restores the previous state managed by this control.

limit

{Integer} Optional limit on the number of history items to retain.  If null, there is no limit.  Default is 50.

Constructor

oscar.Control.PreviousView

Parameters: options{Object} An optional object whose properties will be used to extend the control.

Functions

trigger Restore the previous state.  If no items are in the

previous history stack, this has no effect.

Returns: state{Object} Item representing state that was restored.  Undefined if no items are in the previous history stack.

destroy

destroy : function()

Destroy the control.

setMap

setMap : function(map)

Set the map property for the control and <previous> and &lt;next&gt; child controls.

Parameters

map{&lt;OpenLayers.Map&gt;}

draw

draw : function()

Called when the control is added to the map.

clear

clear : function()

Clear history.

activate Activate the control.

Returns: {Boolean} Control successfully activated.

deactivate Deactivate the control.  This unregisters any

listeners.

Constants

CLASS_NAME - oscar.Control.PreviousView

destroy : function()
Destroy the control.
setMap : function(map)
Set the map property for the control and previous and &lt;next&gt; child controls.
draw : function()
Called when the control is added to the map.
clear : function()
Clear history.