For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class KeyboardHandler
Hierarchy (View Summary)
- KeyboardHandler
Implements
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
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.