The KeyboardHandler allows the user to zoom, rotate, and pan the map using the following keyboard shortcuts:
KeyboardHandler
=
+
Shift-=
Shift-+
-
Shift--
Shift+⇢
Shift+⇠
Shift+⇡
Shift+⇣
Disables the "keyboard rotate and zoom" interaction.
map.keyboard.disable(); Copy
map.keyboard.disable();
Disables the "keyboard pan/rotate" interaction, leaving the "keyboard zoom" interaction enabled.
map.keyboard.disableRotation(); Copy
map.keyboard.disableRotation();
Enables the "keyboard rotate and zoom" interaction.
map.keyboard.enable(); Copy
map.keyboard.enable();
Enables the "keyboard pan/rotate" interaction.
map.keyboard.enable();map.keyboard.enableRotation(); Copy
map.keyboard.enable();map.keyboard.enableRotation();
Returns true if the handler is enabled and has detected the start of a zoom/rotate gesture.
true if the handler is enabled and has detected the start of a zoom/rotate gesture.
true
Returns a Boolean indicating whether the "keyboard rotate and zoom" interaction is enabled.
true if the "keyboard rotate and zoom" interaction is enabled.
The
KeyboardHandler
allows 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.