Packagecom.afcomponents.umap.gui
Classpublic class MapControl
InheritanceMapControl Inheritance MapObject Inheritance flash.display.Sprite
ImplementsIMapControl
SubclassesCopyrightControl

MapControl



Public Properties
 PropertyDefined by
  align : Align
Gets or sets the control's alignment.
MapControl
 InheritedasDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
MapObject
 Inheritedcore : UMap
Returns reference to the core UMap object.
MapObject
 Inheritedid : uint
Gets or sets the ID of the object.
MapObject
  minSize : Size
Gets or sets control's minimum size.
MapControl
 Inheritedname : String
Gets or sets the name of the object.
MapObject
  offset : Offset
Gets or sets the control's offset position.
MapControl
 Inheritedowner : IMapObjectContainer
Returns reference to the owner container object.
MapObject
  padding : Point
Gets or sets the control's padding value.
MapControl
  stackAlignment : String
Gets or sets control's stack alignment.
MapControl
  STACK_HORIZONTAL : String = "horizontal"
[static]
MapControl
  stackPadding : Point
Gets or sets control's stack padding value.
MapControl
  STACK_VERTICAL : String = "vertical"
[static]
MapControl
Public Methods
 MethodDefined by
  
MapControl(param:Object = null)
MapControl
  
dispose():void
Releases all the resources accuired by the object.
MapControl
  
MapControl
  
init():void
Invoked when control has been attached to GuiManager, or when UMap has been initialized.
MapControl
  
ready():void
Invoked when UMap enters ready() state.
MapControl
  
refresh():void
Refreshes the control.
MapControl
 Inherited
remove():void
Removes the object from the owner container object.
MapObject
  
Invoked by GuiManager to report the available space this control can occupy.
MapControl
 Inherited
Adds the object to the specified IMapObjectContainer.
MapObject
  
setRefreshCallback(refresh:Function):void
Sets the callback function which should be called by the control after it's size has been updated.
MapControl
 Inherited
toString():String
Returns a textual representation of the object.
MapObject
  
updateMapType(mapType:IMapType):void
Invoked when map type has been updated.
MapControl
  
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
MapControl
  
updateSize(width:Number, height:Number):void
Invoked when the UMap Component size has been updated.
MapControl
  
updateZoom(zoom:Number):void
Invoked when map zoom level has been updated.
MapControl
Property detail
alignproperty
align:Align  [read-write]

Gets or sets the control's alignment. Use Align constants.

Implementation
    public function get align():Align
    public function set align(value:Align):void
minSizeproperty 
minSize:Size  [read-write]

Gets or sets control's minimum size.

Implementation
    public function get minSize():Size
    public function set minSize(value:Size):void
offsetproperty 
offset:Offset  [read-write]

Gets or sets the control's offset position.

Implementation
    public function get offset():Offset
    public function set offset(value:Offset):void
paddingproperty 
padding:Point  [read-write]

Gets or sets the control's padding value.

Implementation
    public function get padding():Point
    public function set padding(value:Point):void
stackAlignmentproperty 
stackAlignment:String  [read-write]

Gets or sets control's stack alignment. Can be either MapControl.STACK_VERTICAL or MapControl.STACK_HORIZONTAL.

Implementation
    public function get stackAlignment():String
    public function set stackAlignment(value:String):void
STACK_HORIZONTALproperty 
public static var STACK_HORIZONTAL:String = "horizontal"

stackPaddingproperty 
stackPadding:Point  [read-write]

Gets or sets control's stack padding value.

Implementation
    public function get stackPadding():Point
    public function set stackPadding(value:Point):void
STACK_VERTICALproperty 
public static var STACK_VERTICAL:String = "vertical"

Constructor detail
MapControl()constructor
public function MapControl(param:Object = null)

Parameters
param:Object (default = null)
Method detail
dispose()method
public override function dispose():void

Releases all the resources accuired by the object.

getBoundsXY()method 
public function getBoundsXY():Bounds

Returns
Bounds
init()method 
public function init():void

Invoked when control has been attached to GuiManager, or when UMap has been initialized.

ready()method 
public function ready():void

Invoked when UMap enters ready() state.

refresh()method 
public function refresh():void

Refreshes the control.

setAvailableSize()method 
public function setAvailableSize(size:Size):void

Invoked by GuiManager to report the available space this control can occupy.

Parameters
size:Size — Dimensions of the available space.
setRefreshCallback()method 
public function setRefreshCallback(refresh:Function):void

Sets the callback function which should be called by the control after it's size has been updated. GuiManager uses this function to re-align the control.

Parameters
refresh:Function
updateMapType()method 
public function updateMapType(mapType:IMapType):void

Invoked when map type has been updated.

Parameters
mapType:IMapType — Reference to the new map type.
updatePosition()method 
public function updatePosition(latlng:LatLng):void

Invoked when map center has been updated.

Parameters
latlng:LatLng — Geographical coordinates of the new map center.
updateSize()method 
public function updateSize(width:Number, height:Number):void

Invoked when the UMap Component size has been updated.

Parameters
width:Number — New width of the component.
 
height:Number — New height of the component.
updateZoom()method 
public function updateZoom(zoom:Number):void

Invoked when map zoom level has been updated.

Parameters
zoom:Number — New zoom level.