Packagecom.afcomponents.umap.display.birdseye
Classpublic class BirdsEyeManager
InheritanceBirdsEyeManager Inheritance Manager Inheritance MapObjectContainer Inheritance MapObject Inheritance flash.display.Sprite
ImplementsIManager

BirdsEyeManager manages Bing's BirdsEye view. This class depends on MapPointProxy, so don't forget to initialize it before attaching the manager to the UMap.


Example
Here is a quick usage example:
 import com.afcomponents.umap.core.UMap;
 import com.afcomponents.umap.providers.microsoft.MapPointProxy;
 import com.afcomponents.umap.providers.microsoft.BingProvider;
 import com.afcomponents.umap.providers.microsoft.BingEnvironment;
  
 // 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");
  
 // force staging environment
 BingEnvironment.type = BingEnvironment.STAGING;
  
 // select Bing provider
 map.setProvider(new BingProvider());
 map.setMapType(BingProvider.ROAD);
  
 // add birdseye button
 // don't forget to add Button to the library from the components panel!
 import fl.controls.Button;
 var button:Button = new Button();
 button.label = "Birds EYE";
 button.enabled = false;
 button.x = button.y = 10;
 addChild(button);
  
 // initizlize birds eye manager
 import com.afcomponents.umap.display.birdseye.BirdsEyeManager;
 var birdseye:BirdsEyeManager = new BirdsEyeManager();
 map.addManager(birdseye);
  
 // listen for birds eye status change
 birdseye.addEventListener(Event.CHANGE, birdseyeUpdate);
 
 function birdseyeUpdate(event:Event):void
 {
   trace("Birds eye changed, available: " + birdseye.available);
   button.enabled = birdseye.available;
 }
  
 // add click handler to button
 button.addEventListener(MouseEvent.CLICK, buttonClick);
 function buttonClick(event:MouseEvent):void
 {
   // select bird's eye map type
   map.setMapType(birdseye.mapType);
 }
 

See also

com.afcomponents.umap.providers.microsoft.MapPointProxy


Public Properties
 PropertyDefined by
 InheritedasDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
MapObject
  available : Boolean
[read-only]
BirdsEyeManager
 Inheritedcore : UMap
Returns reference to the core UMap object.
MapObject
 Inheritedid : uint
Gets or sets the ID of the object.
MapObject
  mapType : IMapType
[read-only]
BirdsEyeManager
 Inheritedname : String
Gets or sets the name of the object.
MapObject
 Inheritedowner : IMapObjectContainer
Returns reference to the owner container object.
MapObject
Public Methods
 MethodDefined by
  
BirdsEyeManager
 Inherited
addObject(object:IMapObject):void
Adds new IMapObject to the container.
MapObjectContainer
 Inherited
bringForward(object:IMapObject):void
Moves the attached IMapObject forward in the display list.
MapObjectContainer
 Inherited
bringToFront(object:IMapObject):void
Brings the attached IMapObject to the top of the display list.
MapObjectContainer
 Inherited
clearObjects(filter:Class = null):void
Removes all attached objects.
MapObjectContainer
 Inherited
dispose():void
Releases all the resources accuired by the object.
MapObjectContainer
 Inherited
getObject(id_or_name:*, filter:Class = null):IMapObject
Searches for an object with specified id or name.
MapObjectContainer
 Inherited
getObjectById(id:uint, filter:Class = null):IMapObject
Searches for an object with specified id.
MapObjectContainer
 Inherited
getObjectByName(name:String, matchCase:Boolean = false, filter:Class = null):IMapObject
Searches for an object with specified name.
MapObjectContainer
 Inherited
getObjects(filter:Class = null):Array
Returns an array of IMapObjects that where added to the container.
MapObjectContainer
  
Returns scene bounds
BirdsEyeManager
 Inherited
init():void
Manager
 Inherited
isOwnerVisible():Boolean
Recursevly checks visibility of parent objects
MapObjectContainer
 Inherited
ready():void
Manager
  
refresh(latlng:LatLng = null, zoom:Number):void
BirdsEyeManager
  
Makes an GetImageryMetadat request to find out uri and subdomains
BirdsEyeManager
 Inherited
remove():void
Removes the object from the owner container object.
MapObject
 Inherited
removeObject(object:IMapObject):void
Removes IMapObject from the container.
MapObjectContainer
 Inherited
sendBackward(object:IMapObject):void
Sends the attached IMapObject backward in the display list.
MapObjectContainer
 Inherited
sendToBack(object:IMapObject):void
Sends the attached IMapObject to the bottom of the display list.
MapObjectContainer
 Inherited
Adds the object to the specified IMapObjectContainer.
MapObjectContainer
 Inherited
toString():String
Returns a textual representation of the object.
MapObject
 Inherited
updateComponentProperty(property:String, value:*):void
Manager
 Inherited
updateMapType(mapType:IMapType):void
Manager
 Inherited
updatePosition(latlng:LatLng):void
Manager
 Inherited
updateSize(width:Number, height:Number):void
Manager
 Inherited
updateZoom(zoom:Number):void
Manager
Property detail
availableproperty
available:Boolean  [read-only]Implementation
    public function get available():Boolean
mapTypeproperty 
mapType:IMapType  [read-only]Implementation
    public function get mapType():IMapType
Constructor detail
BirdsEyeManager()constructor
public function BirdsEyeManager()
Method detail
getSceneBounds()method
public function getSceneBounds():Array

Returns scene bounds

Returns
Array
refresh()method 
public function refresh(latlng:LatLng = null, zoom:Number):voidParameters
latlng:LatLng (default = null)
 
zoom:Number
refreshMetadata()method 
public function refreshMetadata():void

Makes an GetImageryMetadat request to find out uri and subdomains