OpenLayers. Control. Navigation

The navigation control handles map browsing with mouse events (dragging, double-clicking, and scrolling the wheel).  Create a new navigation control with the OpenLayers.Control.Navigation control.

Note that this control is added to the map by default (if no controls array is sent in the options object to the OpenLayers.Map constructor).

Inherits

Summary
OpenLayers. Control. NavigationThe navigation control handles map browsing with mouse events (dragging, double-clicking, and scrolling the wheel).
Properties
dragPan{OpenLayers.Control.DragPan}
zoomBox{OpenLayers.Control.ZoomBox}
zoomWheelEnabled{Boolean} Whether the mousewheel should zoom the map
handleRightClicks{Boolean} Whether or not to handle right clicks.
Constructor
OpenLayers. Control. NavigationCreate a new navigation control
Functions
destroyThe destroy method is used to perform any clean up before the control is dereferenced.
activate
deactivate
draw
defaultDblClick
defaultRightDblClick
wheelChange
wheelUpUser spun scroll wheel up
wheelDownUser spun scroll wheel down
disableZoomWheel
enableZoomWheel

Properties

zoomWheelEnabled

{Boolean} Whether the mousewheel should zoom the map

handleRightClicks

{Boolean} Whether or not to handle right clicks.  Default is false.

Constructor

OpenLayers. Control. Navigation

Create a new navigation control

Parameters

options{Object} An optional object whose properties will be set on the control

Functions

destroy

destroy: function()

The destroy method is used to perform any clean up before the control is dereferenced.  Typically this is where event listeners are removed to prevent memory leaks.

activate

activate: function()

deactivate

deactivate: function()

draw

draw: function()

defaultDblClick

defaultDblClick: function (evt)

Parameters

evt{Event}

defaultRightDblClick

Parameters

evt{Event}

wheelChange

wheelChange: function(evt,
deltaZ)

Parameters

evt{Event}
deltaZ{Integer}

wheelUp

wheelUp: function(evt)

User spun scroll wheel up

Parameters

evt{Event}

wheelDown

wheelDown: function(evt)

User spun scroll wheel down

Parameters

evt{Event}

disableZoomWheel

disableZoomWheel : function()

enableZoomWheel

enableZoomWheel : function()
DragPan control.
destroy: function()
The destroy method is used to perform any clean up before the control is dereferenced.
activate: function()
deactivate: function()
draw: function()
defaultDblClick: function (evt)
wheelChange: function(evt,
deltaZ)
wheelUp: function(evt)
User spun scroll wheel up
wheelDown: function(evt)
User spun scroll wheel down
disableZoomWheel : function()
enableZoomWheel : function()
Create a new navigation control
Instances of OpenLayers.Map are interactive maps embedded in a web page.
Controls affect the display or behavior of the map.
Close