| Package | com.esri.ags.webmap |
| Class | public class WebMapUtil |
| Inheritance | WebMapUtil flash.events.EventDispatcher |
| Since : | ArcGIS API for Flex 2.2 |
See also
| Property | Defined By | ||
|---|---|---|---|
| arcgisSharingURL : String
The base URL to the item and item data. | WebMapUtil | ||
| bingMapsKey : String
The Bing Maps Key, required if working with Microsoft Bing Maps. | WebMapUtil | ||
| geometryService : GeometryService
The GeometryService to used to project the extent with when necessary. | WebMapUtil | ||
| ignorePopUps : Boolean = false
If true, any popups defined in the Web map will be ignored when creating a map from an ArcGIS.com Web map. | WebMapUtil | ||
| proxyURL : String
The URL to proxy the requests through when necessary. | WebMapUtil | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new WebMapUtil object. | WebMapUtil | ||
createMapById(itemId:String, responder:IResponder = null):AsyncToken
Create a map using information from an ArcGIS.com item. | WebMapUtil | ||
createMapByItem(item:Object, itemData:Object, responder:IResponder = null):AsyncToken
Create a map using information from an ArcGIS.com item. | WebMapUtil | ||
getItem(itemId:String, responder:IResponder = null):AsyncToken
Gets details about the input ArcGIS.com item. | WebMapUtil | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when an createMapById operation successfully completes. | WebMapUtil | |||
| Dispatched when an createMapByItem operation successfully completes. | WebMapUtil | |||
| Dispatched when a WebMapUtil fails. | WebMapUtil | |||
| Dispatched when an getItem operation successfully completes. | WebMapUtil | |||
| arcgisSharingURL | property |
arcgisSharingURL:StringThe base URL to the item and item data. Defaults to the ArcGIS.com base URL, but can be set to any ArcGIS Portal.
The default value is http://www.arcgis.com/sharing/content/items.
public function get arcgisSharingURL():String public function set arcgisSharingURL(value:String):void| bingMapsKey | property |
public var bingMapsKey:StringThe Bing Maps Key, required if working with Microsoft Bing Maps.
| geometryService | property |
public var geometryService:GeometryServiceThe GeometryService to used to project the extent with when necessary. The item's extent will not be used if this is not set and the item's extent needs to be projected.
| ignorePopUps | property |
public var ignorePopUps:Boolean = false| Since : | ArcGIS API for Flex 2.3 |
If true, any popups defined in the Web map will be ignored when creating a map from an ArcGIS.com Web map.
The default value is false.
| proxyURL | property |
proxyURL:StringThe URL to proxy the requests through when necessary. If this is not set, layers that require a proxy will not be loaded.
public function get proxyURL():String public function set proxyURL(value:String):void| WebMapUtil | () | Constructor |
public function WebMapUtil()Creates a new WebMapUtil object.
| createMapById | () | method |
public function createMapById(itemId:String, responder:IResponder = null):AsyncTokenCreate a map using information from an ArcGIS.com item.
Parameters
itemId:String — The item id.
| |
responder:IResponder (default = null) — The responder to call on result or fault with either a WebMapEvent or a Fault passed as an argument.
|
AsyncToken |
| createMapByItem | () | method |
public function createMapByItem(item:Object, itemData:Object, responder:IResponder = null):AsyncTokenCreate a map using information from an ArcGIS.com item.
Parameters
item:Object — The item metadata.
| |
itemData:Object — The item data.
| |
responder:IResponder (default = null) — The responder to call on result or fault with either a WebMapEvent or a Fault passed as an argument.
|
AsyncToken |
| getItem | () | method |
public function getItem(itemId:String, responder:IResponder = null):AsyncTokenGets details about the input ArcGIS.com item.
Parameters
itemId:String — The item id.
| |
responder:IResponder (default = null) — The responder to call on result or fault with either a WebMapEvent or a Fault passed as an argument.
|
AsyncToken |
| createMapByIdComplete | Event |
com.esri.ags.events.WebMapEventcom.esri.ags.events.WebMapEvent.CREATE_MAP_BY_ID_COMPLETEDispatched when an createMapById operation successfully completes.
Defines the value of thetype property of an createMapByIdComplete event object.
| createMapByItemComplete | Event |
com.esri.ags.events.WebMapEventcom.esri.ags.events.WebMapEvent.CREATE_MAP_BY_ITEM_COMPLETEDispatched when an createMapByItem operation successfully completes.
Defines the value of thetype property of an createMapByItemComplete event object.
| fault | Event |
mx.rpc.events.FaultEventmx.rpc.events.FaultEvent.FAULTDispatched when a WebMapUtil fails.
| getItemComplete | Event |
com.esri.ags.events.WebMapEventcom.esri.ags.events.WebMapEvent.GET_ITEM_COMPLETEDispatched when an getItem operation successfully completes.
Defines the value of thetype property of an getItemComplete event object.