Maps SDK for Web

tt.KeyboardHandler

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.
  • Arrow keys: Pan by 100 pixels.
  • 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.

Methods

disable( )

Disables the 'keyboard' interaction.

enable( )

Enables the 'keyboard' interaction.

Example
map.keyboard.enable();

isEnabled( ): Boolean

Returns a Boolean indicating whether the 'keyboard' interaction is enabled.

Returns

true if the 'keyboard' interaction is enabled.