Packagecom.esri.ags.events
Classpublic class MapEvent
InheritanceMapEvent Inheritance flash.events.Event

Represents event objects that are specific to the map.

See also

com.esri.ags.Map
Live Sample - using Map and load.


Public Properties
 PropertyDefined By
  index : int = -1
The index of the added or the reordered layer.
MapEvent
  layer : Layer
Reference to the associated layer.
MapEvent
  map : Map
Reference to the associated map.
MapEvent
Public Methods
 MethodDefined By
  
MapEvent(type:String, map:Map = null, layer:Layer = null, index:int = -1)
Creates a new MapEvent.
MapEvent
Public Constants
 ConstantDefined By
  LAYER_ADD : String = layerAdd
[static] Defines the value of the type property of a layerAdd event object.
MapEvent
  LAYER_REMOVE : String = layerRemove
[static] Defines the value of the type property of a layerRemove event object.
MapEvent
  LAYER_REMOVE_ALL : String = layerRemoveAll
[static] Defines the value of the type property of a layerRemoveAll event object.
MapEvent
  LAYER_REORDER : String = layerReorder
[static] Defines the value of the type property of a layerReorder event object.
MapEvent
  LOAD : String = load
[static] Defines the value of the type property of a load event object.
MapEvent
Property Detail
indexproperty
public var index:int = -1

The index of the added or the reordered layer.

layerproperty 
public var layer:Layer

Reference to the associated layer.

mapproperty 
public var map:Map

Reference to the associated map.

Constructor Detail
MapEvent()Constructor
public function MapEvent(type:String, map:Map = null, layer:Layer = null, index:int = -1)

Creates a new MapEvent.

Parameters
type:String — The event type; indicates the action that triggered the event.
 
map:Map (default = null) — Reference to the associated map.
 
layer:Layer (default = null)
 
index:int (default = -1)
Constant Detail
LAYER_ADDConstant
public static const LAYER_ADD:String = layerAdd

Defines the value of the type property of a layerAdd event object.

LAYER_REMOVEConstant 
public static const LAYER_REMOVE:String = layerRemove

Defines the value of the type property of a layerRemove event object.

LAYER_REMOVE_ALLConstant 
public static const LAYER_REMOVE_ALL:String = layerRemoveAll

Defines the value of the type property of a layerRemoveAll event object.

LAYER_REORDERConstant 
public static const LAYER_REORDER:String = layerReorder

Defines the value of the type property of a layerReorder event object.

LOADConstant 
public static const LOAD:String = load

Defines the value of the type property of a load event object.