Packagecom.afcomponents.umap.providers.arcgis
Classpublic class ArcGISMapProvider
InheritanceArcGISMapProvider Inheritance XMLProvider Inheritance DefaultProvider Inheritance flash.events.EventDispatcher
SubclassesArcGISTiledMapProvider



Public Properties
 PropertyDefined by
  baseURL : String
[read-only]
ArcGISMapProvider
 InheritedcopyrightURL : URLRequest
Gets or sets the URL Request object that will be used to download copyright data.
XMLProvider
 InheritedDEFAULT_MAPTYPE_CLASS : Class
[static] Defines the class that will be used by settings parser to create new map type.
XMLProvider
 InheritedDEFAULT_PROJECTION_CLASS : Class
[static] Defines the class that will be used by settings parser as the default map type projection.
XMLProvider
 InheritedDEFAULT_TILELAYER_CLASS : Class
[static] Defines the class that will be used by settings parser to create new tile layer.
XMLProvider
 InheritedlanguageURL : URLRequest
Gets or sets the URL Request object that will be used to download language data.
XMLProvider
 InheritedloadingState : String
Indicates current loading state.
XMLProvider
 Inheritedlogo : DisplayObject
Returns a display object with the provider's logo.
DefaultProvider
 InheritedmapTypes : Array
Array which holds map types supported by this Provider.
DefaultProvider
 InheritedsettingsURL : URLRequest
Gets or sets the URL Request object that will be used to download settings data.
XMLProvider
Protected Properties
 PropertyDefined by
 Inherited_copyright : URLRequest
Copyright URL.
XMLProvider
 Inherited_core : UMap
Reference to the core UMap class.
DefaultProvider
 Inherited_default : Boolean
Flag that, indicates whether to use default language & settings data without loading it from the server.
XMLProvider
  _description : String
Map description as defined by the map service provider.
ArcGISMapProvider
  _fullExtent : Bounds
Full extent as defined by the map service provider.
ArcGISMapProvider
  _initialExtent : Bounds
Initial extent as defined by the map service provider.
ArcGISMapProvider
 Inherited_language : URLRequest
Language URL.
XMLProvider
 Inherited_loader : URLLoader
Reference to the URLLoader object that is used for loading data.
XMLProvider
 Inherited_logo : DisplayObject
Display object which containes the provider logo.
DefaultProvider
 Inherited_logoURL : URLRequest
URI of the provider logo.
DefaultProvider
 Inherited_mapTypes : Array
Array of map types.
DefaultProvider
  _proxyURL : String
The URL to proxy the request through.
ArcGISMapProvider
 Inherited_settings : *
Settings URL.
XMLProvider
  _spatialReference : Number
The spatial reference of the map service.
ArcGISMapProvider
  _token : String
ArcGIS security token.
ArcGISMapProvider
  _units : String
Default units of the layer as defined by the service.
ArcGISMapProvider
Public Methods
 MethodDefined by
  
ArcGISMapProvider(url:String)
Defines new ArcGIS provider.
ArcGISMapProvider
 Inherited
addMapType(type:IMapType):Boolean
Adds new map type to the map types Array.
DefaultProvider
 Inherited
clearLogo():void
Clears the logo.
DefaultProvider
 Inherited
dispose():void
Frees the resources accuired by the Provider.
XMLProvider
 Inherited
Returns default copyright string.
XMLProvider
 Inherited
Abstract function.
XMLProvider
 Inherited
Abstract function.
XMLProvider
 Inherited
getDefaultLanguageURL():URLRequest
Abstract function.
XMLProvider
  
ArcGISMapProvider
 Inherited
getDefaultSettingsURL():URLRequest
Abstract function.
XMLProvider
 Inherited
getMapTypeByName(mapTypeName:String):IMapType
Returns map type reference by it's name.
DefaultProvider
 Inherited
init(core:UMap):void
Initializes the provider and starts the loading process.
XMLProvider
 Inherited
loadCopyright(center:LatLng, bounds:LatLngBounds, zoom:Number, event:String = ""):void
Loads copyright information for the specified area from the url defined by the copyrightURL property.
XMLProvider
 Inherited
setLogo(logo:*):void
Setups the logo for the provider, loads it if necessary.
DefaultProvider
Protected Methods
 MethodDefined by
  
fromJSON(obj:Object):Boolean
Loads params from JSON object.
ArcGISMapProvider
 Inherited
getMapTypeCopyright(bounds:LatLngBounds, zoom:Number, mapType:IMapType = null):void
Queries specified map type for copyright string and generates COPYRIGHT_CHANGED event.
DefaultProvider
 Inherited
initMapTypes():void
Override this function to define map types.
DefaultProvider
 Inherited
loadNextCopyright(url:URLRequest = null):void
Loads the queued copyright request.
XMLProvider
 Inherited
parseCopyright(data:String):void
Abstract method.
XMLProvider
 Inherited
parseLanguage(data:String):Boolean
Abstract method.
XMLProvider
  
parseSettings(data:String):Boolean
Parses the XML data with the provider settings.
ArcGISMapProvider
Public Constants
 ConstantDefined by
 InheritedLOADING_COPYRIGHT : String = "loadingCopyright"
[static] The Provider.LOADING_COPYRIGHT constant defines the value of the loadingState property of the Provider object that indicates that copyright information is being loaded at the moment.
XMLProvider
 InheritedLOADING_IDLE : String = "loadingIdle"
[static] The Provider.LOADING_IDLE constant defines the value of the loadingState property of the Provider object that indicates that no loading occurs at the moment.
XMLProvider
 InheritedLOADING_LANGUAGE : String = "loadingLanguage"
[static] The Provider.LOADING_LANGUAGE constant defines the value of the loadingState property of the Provider object that indicates that language file is being loaded at the moment.
XMLProvider
 InheritedLOADING_SETTINGS : String = "loadingSettings"
[static] The Provider.LOADING_SETTINGS constant defines the value of the loadingState property of the Provider object that indicates that settings file is being loaded at the moment.
XMLProvider
Property detail
baseURLproperty
baseURL:String  [read-only]Implementation
    public function get baseURL():String
_descriptionproperty 
protected var _description:String

Map description as defined by the map service provider.

_fullExtentproperty 
protected var _fullExtent:Bounds

Full extent as defined by the map service provider.

_initialExtentproperty 
protected var _initialExtent:Bounds

Initial extent as defined by the map service provider.

_proxyURLproperty 
protected var _proxyURL:String

The URL to proxy the request through. Unsupported.

_spatialReferenceproperty 
protected var _spatialReference:Number

The spatial reference of the map service.

_tokenproperty 
protected var _token:String

ArcGIS security token.

_unitsproperty 
protected var _units:String

Default units of the layer as defined by the service.

Constructor detail
ArcGISMapProvider()constructor
public function ArcGISMapProvider(url:String)

Defines new ArcGIS provider.

Parameters
url:String — URL endpoint of a service. To obtain the URL, use ArcGIS Services Directory. An example URL for the Street Map service on ArcGIS Online is: http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer
Method detail
fromJSON()method
protected function fromJSON(obj:Object):Boolean

Loads params from JSON object.

Parameters
obj:Object

Returns
Boolean
getDefaultSettings()method 
public override function getDefaultSettings():String

Returns
String
parseSettings()method 
protected override function parseSettings(data:String):Boolean

Parses the XML data with the provider settings. Override it for custom settings data parser.

This method has a default implementation. It will define map types out of a XML data. Parameters

data:String — Textual data that needs to be parsed.

Returns
Boolean — A value of true if parsing was successfull; false if it was not.