| Package | com.esri.ags.events |
| Class | public class MapEvent |
| Inheritance | MapEvent flash.events.Event |
See also
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new MapEvent.
| MapEvent | ||
| Constant | Defined 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 | ||
| index | property |
public var index:int = -1The index of the added or the reordered layer.
| layer | property |
public var layer:LayerReference to the associated layer.
| map | property |
public var map:MapReference to the associated map.
| MapEvent | () | constructor |
public function MapEvent(type:String, map:Map = null, layer:Layer = null, index:int = -1)Creates a new MapEvent.
Parameterstype: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) |
| LAYER_ADD | constant |
public static const LAYER_ADD:String = "layerAdd"
Defines the value of the type property of a layerAdd event object.
| LAYER_REMOVE | constant |
public static const LAYER_REMOVE:String = "layerRemove"
Defines the value of the type property of a layerRemove event object.
| LAYER_REMOVE_ALL | constant |
public static const LAYER_REMOVE_ALL:String = "layerRemoveAll"
Defines the value of the type property of a layerRemoveAll event object.
| LAYER_REORDER | constant |
public static const LAYER_REORDER:String = "layerReorder"
Defines the value of the type property of a layerReorder event object.
| LOAD | constant |
public static const LOAD:String = "load"
Defines the value of the type property of a load event object.