Packagecom.afcomponents.umap.providers.microsoft
Classpublic class BingProvider
InheritanceBingProvider Inheritance DefaultProvider Inheritance flash.events.EventDispatcher
ImplementsIProvider

Provides access to the Bing Maps imagery data. Uses MapPointProxy to communicate with the MapPoint servers.


Example
Here is a quick example on how to incorporate Bing provider in the UMap:
 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

com.afcomponents.umap.providers.microsoft.MapPointProxy


Public Properties
 PropertyDefined by
 Inheritedlogo : DisplayObject
Returns a display object with the provider's logo.
DefaultProvider
 InheritedmapTypes : Array
Array which holds map types supported by this Provider.
DefaultProvider
Protected Properties
 PropertyDefined by
 Inherited_core : UMap
Reference to the core UMap class.
DefaultProvider
 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
Public Methods
 MethodDefined by
  
BingProvider(useBirdseye:Boolean = true)
MicrosoftTokenProvider Provider constructor.
BingProvider
 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.
DefaultProvider
  
Returns default copyright string.
BingProvider
 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.
DefaultProvider
 Inherited
loadCopyright(center:LatLng, bounds:LatLngBounds, zoom:Number, event:String = ""):void
Loads copyrights for the specified center, bounds, zoom and event.
DefaultProvider
 Inherited
setLogo(logo:*):void
Setups the logo for the provider, loads it if necessary.
DefaultProvider
Protected Methods
 MethodDefined by
  
getMapTypeCopyright(bounds:LatLngBounds, zoom:Number, mapType:IMapType = null):void
Queries specified map type for copyright string and generates COPYRIGHT_CHANGED event.
BingProvider
 Inherited
initMapTypes():void
Override this function to define map types.
DefaultProvider
Public Constants
 ConstantDefined 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
Constructor detail
BingProvider()constructor
public function BingProvider(useBirdseye:Boolean = true)

MicrosoftTokenProvider Provider constructor.

Parameters
useBirdseye:Boolean (default = true)
Method detail
getDefaultCopyright()method
public override function getDefaultCopyright():String

Returns default copyright string.

Returns
String
getMapTypeCopyright()method 
protected override function getMapTypeCopyright(bounds:LatLngBounds, zoom:Number, mapType:IMapType = null):void

Queries specified map type for copyright string and generates COPYRIGHT_CHANGED event.

Parameters
bounds:LatLngBounds
 
zoom:Number
 
mapType:IMapType (default = null)
Constant detail
AERIALconstant
public static const AERIAL:String = "aerial"

Defines the name of the Aerial map type.

HYBRIDconstant 
public static const HYBRID:String = "hybrid"

Defines the name of the Hybrid map type.

IMAGE_STYLE_AERIALconstant 
public static const IMAGE_STYLE_AERIAL:String = "Aerial"
IMAGE_STYLE_AERIAL_WITH_LABELSconstant 
public static const IMAGE_STYLE_AERIAL_WITH_LABELS:String = "AerialWithLabels"
IMAGE_STYLE_ROADconstant 
public static const IMAGE_STYLE_ROAD:String = "Road"
ROADconstant 
public static const ROAD:String = "road"

Defines a reference to the birds eye service