| Package | com.afcomponents.umap.gui |
| Class | public class BingControl |
| Inheritance | BingControl UIMapControl fl.core.UIComponent |
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
| Property | Defined by | ||
|---|---|---|---|
![]() | align : Align
Gets or sets the control's alignment.
| UIMapControl | |
![]() | asDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
| UIMapControl | |
![]() | core : UMap
Returns reference to the core UMap object.
| UIMapControl | |
![]() | display : String | UIMapControl | |
![]() | DISPLAY_COMPACT : String = "compact" [static]
| UIMapControl | |
![]() | DISPLAY_EXPANDED : String = "expanded" [static]
| UIMapControl | |
![]() | id : uint
Gets or sets the ID of the object.
| UIMapControl | |
![]() | minSize : Size
Gets or sets control's minimum size.
| UIMapControl | |
![]() | name : String | UIMapControl | |
![]() | offset : Offset
Gets or sets the control's offset position.
| UIMapControl | |
![]() | owner : IMapObjectContainer
Returns reference to the owner container object.
| UIMapControl | |
![]() | padding : Point
Gets or sets the control's padding value.
| UIMapControl | |
![]() | stackAlignment : String
Gets or sets control's stack alignment.
| UIMapControl | |
![]() | STACK_HORIZONTAL : String = "horizontal" [static]
| UIMapControl | |
![]() | stackPadding : Point
Gets or sets control's stack padding value.
| UIMapControl | |
![]() | STACK_VERTICAL : String = "vertical" [static]
| UIMapControl | |
| traffic : Boolean | BingControl | ||
| Method | Defined by | ||
|---|---|---|---|
|
BingControl(param:Object = null)
| BingControl | ||
![]() |
cancelDoubleClick(event:MouseEvent = null):void
| UIMapControl | |
![]() |
cancelDragging(event:MouseEvent = null):void
| UIMapControl | |
|
dispose():void
| BingControl | ||
![]() | UIMapControl | ||
![]() |
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 | ||
![]() |
remove():void
Removes the object from the owner container object.
| UIMapControl | |
![]() |
setAvailableSize(size:Size):void
Invoked by GuiManager to report the available space this control can occupy.
| UIMapControl | |
![]() |
setOwner(owner:IMapObjectContainer):void
Adds the object to the specified IMapObjectContainer.
| UIMapControl | |
![]() |
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 | ||
![]() |
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
| UIMapControl | |
![]() |
updateSize(width:Number, height:Number):void
Invoked when the UMap Component size has been updated.
| UIMapControl | |
![]() |
updateZoom(zoom:Number):void
Invoked when map zoom level has been updated.
| UIMapControl | |
| traffic | property |
traffic:Boolean [read-write]Implementation
public function get traffic():Boolean
public function set traffic(value:Boolean):void
| BingControl | () | constructor |
public function BingControl(param:Object = null)Parameters
param:Object (default = null) |
| dispose | () | method |
public override function dispose():void
| ready | () | method |
public override function ready():voidInvoked when UMap enters ready() state.
| refresh | () | method |
public override function refresh():voidRefreshes the control.
| showTraffic | () | method |
public function showTraffic(flag:Boolean = true):voidParameters
flag:Boolean (default = true) |
| updateMapType | () | method |
public override function updateMapType(mapType:IMapType):voidInvoked when map type has been updated.
ParametersmapType:IMapType — Reference to the new map type.
|