Packagecom.esri.aws.awx.map.handlers
Classpublic class PanZoomKeyboardHandler
ImplementsIKeyboardHandler

PanZoomKeyboardHandler pans with the arrow keys and zooms with the +, -, Page Up and Page Down keys.

See also

com.esri.aws.awx.events.MapChangeEvent
com.esri.aws.awx.events.PanEvent


Public Properties
 PropertyDefined by
  map : IMap
[write-only] The map reference.
PanZoomKeyboardHandler
  panStep : Number
The number of pixels to move by.
PanZoomKeyboardHandler
Public Methods
 MethodDefined by
  
cleanUp():void
Cleans up when the keyboard handler is removed.
PanZoomKeyboardHandler
  
onKeyDown(event:KeyboardEvent):void
Throws the onKeyDown keyboard event and turns on the rubberband cursor.
PanZoomKeyboardHandler
  
onKeyUp(event:KeyboardEvent):void
onKeyUp determines which key has been depressed and pans\zooms accordingly.
PanZoomKeyboardHandler
Property detail
mapproperty
map:IMap  [write-only]

The map reference.

Implementation
    public function set map(value:IMap):void
panStepproperty 
panStep:Number  [read-write]

The number of pixels to move by.

The default value is 200.

Implementation
    public function get panStep():Number
    public function set panStep(value:Number):void
Method detail
cleanUp()method
public function cleanUp():void

Cleans up when the keyboard handler is removed.

onKeyDown()method 
public function onKeyDown(event:KeyboardEvent):void

Throws the onKeyDown keyboard event and turns on the rubberband cursor.

Parameters
event:KeyboardEvent — the KeyboardEvent that triggered the method.
onKeyUp()method 
public function onKeyUp(event:KeyboardEvent):void

onKeyUp determines which key has been depressed and pans\zooms accordingly. [+][-][Page Up][Page Down] zoom in and out. Arrow keys pan left, right, up and down.

Parameters
event:KeyboardEvent — the KeyboardEvent that triggered the method.