| Package | com.afcomponents.umap.providers.microsoft |
| Class | public class BingProvider |
| Inheritance | BingProvider DefaultProvider flash.events.EventDispatcher |
| Implements | IProvider |
import com.afcomponents.umap.core.UMap;
import com.afcomponents.umap.providers.microsoft.MapPointProxy;
import com.afcomponents.umap.providers.microsoft.BingProvider;
// create UMap instance
var map:UMap = new UMap();
map.setSize (550,400);
addChild (map);
// initalize proxy
MapPointProxy.initialize("http://www.umapper.com/demo/dmitry/msproxy.php");
// select Bing provider & aerial map type
map.setProvider(new BingProvider());
map.setMapType(BingProvider.AERIAL);
See also
| Method | Defined by | ||
|---|---|---|---|
|
BingProvider(useBirdseye:Boolean = true)
MicrosoftTokenProvider Provider constructor.
| BingProvider | ||
![]() |
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.
| BingProvider | ||
![]() |
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 | |
| Method | Defined by | ||
|---|---|---|---|
|
Queries specified map type for copyright string and generates COPYRIGHT_CHANGED event.
| BingProvider | ||
![]() |
initMapTypes():void
Override this function to define map types.
| DefaultProvider | |
| Constant | Defined by | ||
|---|---|---|---|
| AERIAL : String = "aerial" [static]
Defines the name of the Aerial map type.
| BingProvider | ||
| HYBRID : String = "hybrid" [static]
Defines the name of the Hybrid map type.
| BingProvider | ||
| IMAGE_STYLE_AERIAL : String = "Aerial" [static]
| BingProvider | ||
| IMAGE_STYLE_AERIAL_WITH_LABELS : String = "AerialWithLabels" [static]
| BingProvider | ||
| IMAGE_STYLE_ROAD : String = "Road" [static]
| BingProvider | ||
| ROAD : String = "road" [static]
Defines a reference to the birds eye service
| BingProvider | ||
| BingProvider | () | constructor |
public function BingProvider(useBirdseye:Boolean = true)MicrosoftTokenProvider Provider constructor.
ParametersuseBirdseye:Boolean (default = true) |
| getDefaultCopyright | () | method |
public override function getDefaultCopyright():StringReturns default copyright string.
ReturnsString |
| getMapTypeCopyright | () | method |
protected override function getMapTypeCopyright(bounds:LatLngBounds, zoom:Number, mapType:IMapType = null):voidQueries specified map type for copyright string and generates COPYRIGHT_CHANGED event.
Parametersbounds:LatLngBounds |
|
zoom:Number |
|
mapType:IMapType (default = null) |
| AERIAL | constant |
public static const AERIAL:String = "aerial"Defines the name of the Aerial map type.
| HYBRID | constant |
public static const HYBRID:String = "hybrid"Defines the name of the Hybrid map type.
| IMAGE_STYLE_AERIAL | constant |
public static const IMAGE_STYLE_AERIAL:String = "Aerial"
| IMAGE_STYLE_AERIAL_WITH_LABELS | constant |
public static const IMAGE_STYLE_AERIAL_WITH_LABELS:String = "AerialWithLabels"
| IMAGE_STYLE_ROAD | constant |
public static const IMAGE_STYLE_ROAD:String = "Road"
| ROAD | constant |
public static const ROAD:String = "road"Defines a reference to the birds eye service