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).
OpenLayers. Control. Navigation | The 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. Navigation | Create a new navigation control |
Functions | |
destroy | The destroy method is used to perform any clean up before the control is dereferenced. |
activate | |
deactivate | |
draw | |
defaultDblClick | |
defaultRightDblClick | |
wheelChange | |
wheelUp | User spun scroll wheel up |
wheelDown | User spun scroll wheel down |
disableZoomWheel | |
enableZoomWheel |
The destroy method is used to perform any clean up before the control is dereferenced.
destroy: function()
activate: function()
deactivate: function()
draw: function()
defaultDblClick: function ( evt )
wheelChange: function( evt, deltaZ )
User spun scroll wheel up
wheelUp: function( evt )
User spun scroll wheel down
wheelDown: function( evt )
disableZoomWheel : function()
enableZoomWheel : function()