new KeyboardZoom( [opt_options])
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
opt_options |
olx.interaction.KeyboardZoom |
<optional> |
Options. |
- Source:
- mapspace/interaction/keyboardzoom.js
Extends
- ol.interaction.KeyboardZoom
Methods
-
<static> handleClick(mapBrowserEvent)
-
Handles the
map browser eventif it was aKeyEvent, and decides whether to zoom in or out (depending on whether the key pressed was '+' or '-').This:
Parameters:
Name Type Description mapBrowserEventol.MapBrowserEvent Map browser event.
- Source:
- mapspace/interaction/keyboardzoom.js
Returns:
falseto stop event propagation.- Type
- boolean