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 event
if it was aKeyEvent
, and decides whether to zoom in or out (depending on whether the key pressed was '+' or '-').This:
Parameters:
Name Type Description mapBrowserEvent
ol.MapBrowserEvent Map browser event.
- Source:
- mapspace/interaction/keyboardzoom.js
Returns:
false
to stop event propagation.- Type
- boolean