Packagecom.afcomponents.umap.gui
Classpublic class BingControl
InheritanceBingControl Inheritance UIMapControl Inheritance fl.core.UIComponent

Bing-style control pane. Contains map type buttons, pannning and zoom buttons. Can also show/hide the traffic tile overlay.


Example
Here is a quick usage example:
 import com.afcomponents.umap.core.UMap;
 import com.afcomponents.umap.gui.BingControl;
  
 // create UMap instance
 var map:UMap = new UMap();
 map.setSize (550,400);
 addChild (map);
  
 // create Bing controls
 var bing:BingControl = new BingControl();
 // enable traffic button
 bing.traffic = true;
 // add control to map control's collection
 map.addControl(bing);
 

See also

com.afcomponents.umap.providers.microsoft.BingProvider


Public Properties
 PropertyDefined by
 Inheritedalign : Align
Gets or sets the control's alignment.
UIMapControl
 InheritedasDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
UIMapControl
 Inheritedcore : UMap
Returns reference to the core UMap object.
UIMapControl
 Inheriteddisplay : String
UIMapControl
 InheritedDISPLAY_COMPACT : String = "compact"
[static]
UIMapControl
 InheritedDISPLAY_EXPANDED : String = "expanded"
[static]
UIMapControl
 Inheritedid : uint
Gets or sets the ID of the object.
UIMapControl
 InheritedminSize : Size
Gets or sets control's minimum size.
UIMapControl
 Inheritedname : String
UIMapControl
 Inheritedoffset : Offset
Gets or sets the control's offset position.
UIMapControl
 Inheritedowner : IMapObjectContainer
Returns reference to the owner container object.
UIMapControl
 Inheritedpadding : Point
Gets or sets the control's padding value.
UIMapControl
 InheritedstackAlignment : String
Gets or sets control's stack alignment.
UIMapControl
 InheritedSTACK_HORIZONTAL : String = "horizontal"
[static]
UIMapControl
 InheritedstackPadding : Point
Gets or sets control's stack padding value.
UIMapControl
 InheritedSTACK_VERTICAL : String = "vertical"
[static]
UIMapControl
  traffic : Boolean
BingControl
Public Methods
 MethodDefined by
  
BingControl(param:Object = null)
BingControl
 Inherited
cancelDoubleClick(event:MouseEvent = null):void
UIMapControl
 Inherited
cancelDragging(event:MouseEvent = null):void
UIMapControl
  
dispose():void
BingControl
 Inherited
UIMapControl
 Inherited
init():void
Invoked when control has been attached to GuiManager, or when UMap has been initialized.
UIMapControl
  
ready():void
Invoked when UMap enters ready() state.
BingControl
  
refresh():void
Refreshes the control.
BingControl
 Inherited
remove():void
Removes the object from the owner container object.
UIMapControl
 Inherited
Invoked by GuiManager to report the available space this control can occupy.
UIMapControl
 Inherited
Adds the object to the specified IMapObjectContainer.
UIMapControl
 Inherited
setRefreshCallback(refresh:Function):void
Sets the callback function which should be called by the control after it's size has been updated.
UIMapControl
  
showTraffic(flag:Boolean = true):void
BingControl
  
updateMapType(mapType:IMapType):void
Invoked when map type has been updated.
BingControl
 Inherited
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
UIMapControl
 Inherited
updateSize(width:Number, height:Number):void
Invoked when the UMap Component size has been updated.
UIMapControl
 Inherited
updateZoom(zoom:Number):void
Invoked when map zoom level has been updated.
UIMapControl
Protected Methods
 MethodDefined by
 Inherited
UIMapControl
Property detail
trafficproperty
traffic:Boolean  [read-write]Implementation
    public function get traffic():Boolean
    public function set traffic(value:Boolean):void
Constructor detail
BingControl()constructor
public function BingControl(param:Object = null)Parameters
param:Object (default = null)
Method detail
dispose()method
public override function dispose():void
ready()method 
public override function ready():void

Invoked when UMap enters ready() state.

refresh()method 
public override function refresh():void

Refreshes the control.

showTraffic()method 
public function showTraffic(flag:Boolean = true):voidParameters
flag:Boolean (default = true)
updateMapType()method 
public override function updateMapType(mapType:IMapType):void

Invoked when map type has been updated.

Parameters
mapType:IMapType — Reference to the new map type.