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).
Use Legato.Handler.MouseWheel to enable zooming by mousewheel while loading the map
| Legato. | The navigation control handles map browsing with mouse events (dragging, double-clicking, and scrolling the wheel). |
| Functions | |
| draw | |
| lc: | Legato.Control.Navigation. |
| Configurable Properties | |
| zoomWheelEnabled | {Boolean} Whether the mousewheel should zoom the map. |
| handleRightClicks | {Boolean} Whether or not to handle right clicks. |
| See Also: | <OpenLayers.Control.Navigation> - Legato.Handler.MouseWheel - Legato.Beans.BeanFactory - <QName> |
<lc:Navigation zoomWheelEnabled="true" />
| Configurable Properties | |
| zoomWheelEnabled | {Boolean} Whether the mousewheel should zoom the map. |
| handleRightClicks | {Boolean} Whether or not to handle right clicks. |
draw: function()