| Package | com.afcomponents.umap.providers.cloudmade |
| Class | public class CloudMadeProvider |
| Inheritance | CloudMadeProvider DefaultProvider flash.events.EventDispatcher |
To use their service you need to obtain the api-key. Then decide which tile set you wish to use (standard or mobile) together with the tile size (256 or 64).
import com.afcomponents.umap.core.UMap;
import com.afcomponents.umap.providers.cloudmade.CloudMadeProvider;
var provider:CloudMadeProvider = new CloudMadeProvider("API KEY", CloudMadeProvider.STYLE_MOBILE, CloudMadeProvider.SIZE_64);
map.setProvider(provider);See also
| Method | Defined by | ||
|---|---|---|---|
|
CloudMadeProvider(apikey:String, style:String, size:uint)
ColudMadeProvider constructor.
| CloudMadeProvider | ||
![]() |
addMapType(type:IMapType):Boolean
Adds new map type to the map types Array.
| DefaultProvider | |
![]() |
clearLogo():void
Clears the logo.
| DefaultProvider | |
![]() |
dispose():void
Frees the resources accuired by the Provider.
| DefaultProvider | |
![]() |
getDefaultCopyright():String
Returns default copyright string.
| DefaultProvider | |
![]() |
getMapTypeByName(mapTypeName:String):IMapType
Returns map type reference by it's name.
| DefaultProvider | |
![]() |
Initializes the provider and starts the loading process.
| DefaultProvider | |
![]() |
Loads copyrights for the specified center, bounds, zoom and event.
| DefaultProvider | |
![]() |
setLogo(logo:*):void
Setups the logo for the provider, loads it if necessary.
| DefaultProvider | |
| Constant | Defined by | ||
|---|---|---|---|
| SIZE_256 : uint = 256 [static]
Defines the value for the 256 px tiles.
| CloudMadeProvider | ||
| SIZE_64 : uint = 64 [static]
Defines the value for the 64 px tiles.
| CloudMadeProvider | ||
| STYLE_MOBILE : String = "2" [static]
Defines the value for the mobile tile set.
| CloudMadeProvider | ||
| STYLE_STANDARD : String = "1" [static]
Defines the value for the standard tile set.
| CloudMadeProvider | ||
| CloudMadeProvider | () | constructor |
public function CloudMadeProvider(apikey:String, style:String, size:uint)ColudMadeProvider constructor. Creates new provider instance. Don't forget to specify the api-key!
Parametersapikey:String — API key which can be obtained from the CloudMade site.
|
|
style:String — Specifies the image tile's style: use either CloudMadeProvider.STYLE_STANDARD, or CloudMadeProvider.STYLE_MOBILE.
|
|
size:uint — Specifes the size of the tiles: use either CloudMadeProvider.SIZE_256, or CloudMadeProvider.SIZE_64.
|
See also
| SIZE_256 | constant |
public static const SIZE_256:uint = 256Defines the value for the 256 px tiles.
| SIZE_64 | constant |
public static const SIZE_64:uint = 64Defines the value for the 64 px tiles.
| STYLE_MOBILE | constant |
public static const STYLE_MOBILE:String = "2"Defines the value for the mobile tile set.
| STYLE_STANDARD | constant |
public static const STYLE_STANDARD:String = "1"Defines the value for the standard tile set.