Legato.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 Legato.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).

Extension to OpenLayers

Use Legato.Handler.MouseWheel to enable zooming by mousewheel while loading the map

Inherits

  • <OpenLayers.Control.Navigation>
Summary
Legato.Control.NavigationThe navigation control handles map browsing with mouse events (dragging, double-clicking, and scrolling the wheel).
Functions
draw
lc:Navigation XML based config for aLegato.Control.Navigation.
Configurable Properties
zoomWheelEnabled{Boolean} Whether the mousewheel should zoom the map.
handleRightClicks{Boolean} Whether or not to handle right clicks.

Functions

draw

draw: function()

lc:Navigation XML based config for a

Legato.Control.Navigation.

See Also:<OpenLayers.Control.Navigation> - Legato.Handler.MouseWheel - Legato.Beans.BeanFactory - <QName>

A valid config example for a NavigationHistory would be

<lc:Navigation zoomWheelEnabled="true" />
Summary
Configurable Properties
zoomWheelEnabled{Boolean} Whether the mousewheel should zoom the map.
handleRightClicks{Boolean} Whether or not to handle right clicks.

Configurable Properties

zoomWheelEnabled

{Boolean} Whether the mousewheel should zoom the map.

handleRightClicks

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

draw: function()
The navigation control handles map browsing with mouse events (dragging, double-clicking, and scrolling the wheel).
Handler for wheel up/down events