new CurrentMap(options, condition, onKeyDown, onKeyPress, onKeyUp)
Parameters:
Name | Type | Description |
---|---|---|
options |
* | |
condition |
function | a function that takes a mapBrowserEvent and returns true if the map must be activated, default always true |
onKeyDown |
function | a function that takes a keydown event is fired on the active map |
onKeyPress |
function | a function that takes a keypress event is fired on the active map |
onKeyUp |
function | a function that takes a keyup event is fired on the active map |
Fires:
- event:focus
Extends
- ol.interaction.Interaction
Members
-
_currentMap
-
The current map