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


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.