Class: KeyboardClick

KeyboardClick

new KeyboardClick()

A custom control that (a) adds a vector point that can be moved using the arrow keys of the keyboard, and (b) displays a browser alert window when the RETURN key is pressed. The control can be activated/deactivated using the "i" key. When activated the control deactivates any KeyboardDefaults control in the map so that the map is not moved when the arrow keys are pressed. This control relies on the OpenLayers.Handler.KeyboardPoint custom handler.
Source:

Extends

  • OpenLayers.Control

Requires

  • module:OpenLayers/Control.js
  • module:KeyboardPoint.js