Packagecom.esri.ags.events
Classpublic class WebMapEvent
InheritanceWebMapEvent Inheritance flash.events.Event

Since : ArcGIS API for Flex 2.2

Represents event objects that are specific to WebMapUtil.

See also

com.esri.ags.webmap.WebMapUtil


Public Properties
 PropertyDefined By
  errors : Array
The errors returned by createMapByX() in WebMapUtil for layers that could not be loaded.
WebMapEvent
  item : Object
The item metadata returned by getItem() and createMapByX() in WebMapUtil.
WebMapEvent
  itemData : Object
The item data returned by getItem() and createMapByX() in WebMapUtil.
WebMapEvent
  map : Map
The map returned by createMapByX() in WebMapUtil.
WebMapEvent
Public Methods
 MethodDefined By
  
WebMapEvent(type:String)
Creates a new WebMapEvent.
WebMapEvent
Public Constants
 ConstantDefined By
  CREATE_MAP_BY_ID_COMPLETE : String = createMapByIdComplete
[static] Defines the value of the type property of an createMapByIdComplete event object.
WebMapEvent
  CREATE_MAP_BY_ITEM_COMPLETE : String = createMapByItemComplete
[static] Defines the value of the type property of an createMapByItemComplete event object.
WebMapEvent
  GET_ITEM_COMPLETE : String = getItemComplete
[static] Defines the value of the type property of an getItemComplete event object.
WebMapEvent
Property Detail
errorsproperty
public var errors:Array

The errors returned by createMapByX() in WebMapUtil for layers that could not be loaded. An error String is created for each layer that could not be added to the map. The map itself still gets created but is missing the layers that caused errors.

itemproperty 
public var item:Object

The item metadata returned by getItem() and createMapByX() in WebMapUtil. This includes the extent, title, etc.

itemDataproperty 
public var itemData:Object

The item data returned by getItem() and createMapByX() in WebMapUtil. This includes the layer information.

mapproperty 
public var map:Map

The map returned by createMapByX() in WebMapUtil.

Constructor Detail
WebMapEvent()Constructor
public function WebMapEvent(type:String)

Creates a new WebMapEvent.

Parameters
type:String — The event type; indicates the action that triggered the event.
Constant Detail
CREATE_MAP_BY_ID_COMPLETEConstant
public static const CREATE_MAP_BY_ID_COMPLETE:String = createMapByIdComplete

Defines the value of the type property of an createMapByIdComplete event object.

CREATE_MAP_BY_ITEM_COMPLETEConstant 
public static const CREATE_MAP_BY_ITEM_COMPLETE:String = createMapByItemComplete

Defines the value of the type property of an createMapByItemComplete event object.

GET_ITEM_COMPLETEConstant 
public static const GET_ITEM_COMPLETE:String = getItemComplete

Defines the value of the type property of an getItemComplete event object.