Packagecom.afcomponents.umap.providers.cloudmade
Classpublic class CloudMadeXMLProvider
InheritanceCloudMadeXMLProvider Inheritance XMLProvider Inheritance DefaultProvider Inheritance flash.events.EventDispatcher
SubclassesCloudMadeStamenProvider, CloudMadeStandardProvider

Provider for use with cloudmade.com service which is tuned via XML settings file.

To use their service you need to obtain the api-key.


Example
Here is the usage sample:
 import com.afcomponents.umap.core.UMap;
 import com.afcomponents.umap.providers.cloudmade.CloudMadeXMLProvider;
  
 var provider:CloudMadeXMLProvider = new CloudMadeXMLProvider("API KEY");
    map.setProvider(provider);

See also

http://cloudmade.com


Public Properties
 PropertyDefined by
 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
  _apikey : String
CloudMadeXMLProvider
 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
 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
 Inherited_settings : *
Settings URL.
XMLProvider
Public Methods
 MethodDefined by
  
CloudMadeXMLProvider(apikey:String, defaultData:Boolean = false, settings:* = null)
ColudMadeProvider constructor.
CloudMadeXMLProvider
 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
 Inherited
Abstract function.
XMLProvider
 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
 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
 Inherited
parseSettings(data:String):Boolean
Parses the XML data with the provider settings.
XMLProvider
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
_apikeyproperty
protected var _apikey:String
Constructor detail
CloudMadeXMLProvider()constructor
public function CloudMadeXMLProvider(apikey:String, defaultData:Boolean = false, settings:* = null)

ColudMadeProvider constructor. Creates new provider instance. Don't forget to specify the api-key!

Parameters
apikey:String — API key which can be obtained from the CloudMade site.
 
defaultData:Boolean (default = false) — Specifies the image tile's style: use either CloudMadeProvider.STYLE_STANDARD, or CloudMadeProvider.STYLE_MOBILE.
 
settings:* (default = null) — Specifes the size of the tiles: use either CloudMadeProvider.SIZE_256, or CloudMadeProvider.SIZE_64.

See also