Class KeyboardHandler
Hierarchy (View Summary)
- KeyboardHandler
Implements
Index
Constructors
Methods
Methods
disable
disableRotation
enable
enableRotation
isActive
Returns true if the handler is enabled and has detected the start of a zoom/rotate gesture.
Returns boolean
trueif the handler is enabled and has detected the start of a zoom/rotate gesture.
isEnabled
Returns a Boolean indicating whether the "keyboard rotate and zoom" interaction is enabled.
Returns boolean
trueif the "keyboard rotate and zoom" interaction is enabled.
keydown
Parameters
Returns { cameraAnimation: (map: MapLibreMap) => void }
reset
resetcan be called by the manager at any time and must reset everything to it's original stateReturns void
Was this helpful?
The
KeyboardHandlerallows the user to zoom, rotate, and pan the map using the following keyboard shortcuts:=/+: Increase the zoom level by 1.Shift-=/Shift-+: Increase the zoom level by 2.-: Decrease the zoom level by 1.Shift--: Decrease the zoom level by 2.Shift+⇢: Increase the rotation by 15 degrees.Shift+⇠: Decrease the rotation by 15 degrees.Shift+⇡: Increase the pitch by 10 degrees.Shift+⇣: Decrease the pitch by 10 degrees.