| Package | com.afcomponents.umap.overlays |
| Class | public class Circle |
| Inheritance | Circle Polygon Overlay MapObject flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
![]() | asDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
| MapObject | |
![]() | autoCloseInfo : Boolean
Gets or sets the autCloseInfo flag, which indicates whether to close
info window automatically when user clicks somewhere on the map.
| Overlay | |
![]() | autoInfo : Boolean
Gets or sets the autInfo flag, which indicates whether to open info window automatically upon mouse click.
| Overlay | |
| center : LatLng
| Circle | ||
![]() | clipping : Boolean | Polygon | |
![]() | core : UMap
Returns reference to the core UMap object.
| MapObject | |
![]() | data : *
Gets or sets the data parameter of the Overlay.
| Overlay | |
![]() | description : String
Gets or sets the description text of the Overlay.
| Overlay | |
![]() | draggable : Boolean
Gets or sets Overlay's draggable property.
| Overlay | |
![]() | dragging : Boolean
Indicates whether Overlay is being dragged at the moment.
| Overlay | |
![]() | id : uint
Gets or sets the ID of the object.
| MapObject | |
![]() | info : IInfoWindow
Return referens to opened InfoWindow
| Overlay | |
![]() | infoParam : Object
Gets or sets the info window param object.
| Overlay | |
![]() | infoStyle : Object
Gets or sets the info window style object associated with the Overlay.
| Overlay | |
![]() | name : String
Gets or sets the name of the object.
| Overlay | |
![]() | owner : IMapObjectContainer
Returns reference to the owner container object.
| MapObject | |
![]() | point : Point
Returns the position of the Overlay in bitmap coordinates.
| Overlay | |
![]() | points : Array | Polygon | |
![]() | position : LatLng
Gets or set the geographical position of the Overlay.
| Overlay | |
| radius : Number | Circle | ||
![]() | smartPosition : Boolean
Gets or sets the smartPosition flag, which indicates whether to use smart positioning with the Overlay.
| Overlay | |
![]() | smartPositionOffset : Number | Overlay | |
| smoothingFactor : uint | Circle | ||
| units : String | Circle | ||
![]() | visible : Boolean
Gets or sets the Overlay's visibility.
| Overlay | |
![]() | zIndexAuto : Boolean
Gets or sets zIndexAuto property which indicates wheter Overlay should be brought to front on mouse over event.
| Overlay | |
| Method | Defined by | ||
|---|---|---|---|
|
Circle(param:Object = null, style:Object = null)
| Circle | ||
![]() |
addEventListeners(target:InteractiveObject = null):void
Adds a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.
| Overlay | |
![]() |
bringToFront():void
Brings target Overlay to the top of the parent's display list.
| Overlay | |
![]() |
Creates an exact copy of this Overlay and returns it to the user.
| Overlay | |
![]() |
closeInfoWindow():void
Closes info window that is currently opened.
| Overlay | |
![]() |
dispose():void
Releases all the resources accuired by the object.
| Polygon | |
![]() |
dragStart():void
Starts Overlay dragging.
| Overlay | |
![]() |
dragStop():void
Stops Overlay dragging.
| Overlay | |
|
[static]
Creates new Circle from XML object in KML 2.1 format.
| Circle | ||
![]() |
Retruns Overlay bounds in geographical coordinates.
| Polygon | |
![]() |
getBoundsXY(zoom:Number = 0):Bounds
Retruns Overlay bounds in bitmap coordinates.
| Polygon | |
![]() |
getStyle():Object
Returns a copy of the style object.
| Polygon | |
![]() |
| Polygon | |
![]() |
getVertexCount(lineIndex:uint = 0):uint
| Polygon | |
![]() |
hide():void
Hides overlay.
| Overlay | |
![]() |
invalidate():void
Schedules the Overlay for invalidation in 1 frame after this call.
| Overlay | |
![]() |
openInfoWindow(param:Object = null, style:Object = null):IInfoWindow
Opens new info window with the specified parameters & style.
| Overlay | |
![]() |
redraw():void
Redraws the overlay.
| Polygon | |
|
refresh(full:Boolean = false):void
| Circle | ||
![]() |
remove():void
Removes the object from the owner container object.
| MapObject | |
![]() |
removeEventListeners(target:InteractiveObject = null):void
Removes a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.
| Overlay | |
![]() |
setOwner(owner:IMapObjectContainer):void
Adds the object to the specified IMapObjectContainer.
| MapObject | |
![]() |
setStyle(style:Object):void
Sets the style for this Overlay from an Object or another Style.
| Polygon | |
![]() |
show():void
Shows overlay.
| Overlay | |
![]() |
toString():String
Returns a textual representation of the object.
| MapObject | |
|
toXML(full:Boolean = true, afcTags:Boolean = false):XML
Builds an XML object in KML 2.1 format that describes the Overlay & it's style.
| Circle | ||
![]() |
updateMapType(mapType:IMapType):void
Invoked when map type has been changed.
| Overlay | |
![]() |
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
| Overlay | |
![]() |
updateZoom(zoom:Number):void
Invoked when map zoom has been updated.
| Overlay | |
| Constant | Defined by | ||
|---|---|---|---|
| KILOMETERS : String = "kilometers" [static]
| Circle | ||
| METERS : String = "meters" [static]
| Circle | ||
| MILES : String = "miles" [static]
| Circle | ||
| center | property |
center:LatLng [read-write]Implementation
public function get center():LatLng
public function set center(value:LatLng):void
| radius | property |
radius:Number [read-write]Implementation
public function get radius():Number
public function set radius(value:Number):void
| smoothingFactor | property |
smoothingFactor:uint [read-write]Implementation
public function get smoothingFactor():uint
public function set smoothingFactor(value:uint):void
| units | property |
units:String [read-write]Implementation
public function get units():String
public function set units(value:String):void
| Circle | () | constructor |
public function Circle(param:Object = null, style:Object = null)Parameters
param:Object (default = null) |
|
style:Object (default = null) |
| fromXML | () | method |
public static function fromXML(xml:XML, param:Object = null, style:Object = null, classObject:Class = null):CircleCreates new Circle from XML object in KML 2.1 format.
Parametersxml:XML — XML object with root <Container> node
which contains Style nodes and a single <Placemark> node.
|
|
param:Object (default = null) — Default parameter object that will be passed to the object's constructor.
|
|
style:Object (default = null) — Default style object that will be passed to the object's constructor.
|
|
classObject:Class (default = null) — Custom class object that will be instantiated instead of the default one.
|
Circle —
New Circle object.
|
<!-- Container id="ID" --> <!-- Document,Folder -->
<Style id="ID">
<LineStyle id="ID">
<!-- inherited from ColorStyle -->
<color>ffffffff</color> <!-- kml:color -->
<colorMode>normal</colorMode> <!-- colorModeEnum: normal or random -->
<!-- specific to LineStyle -->
<width>1</width> <!-- float -->
</LineStyle>
<PolyStyle id="ID">
<!-- inherited from ColorStyle -->
<color>ffffffff</color> <!-- kml:color -->
<colorMode>normal</colorMode> <!-- kml:colorModeEnum: normal or random -->
<!-- specific to PolyStyle -->
<fill>1</fill> <!-- boolean -->
<outline>1</outline> <!-- boolean -->
</PolyStyle>
</Style>
<Placemark>
<Polygon id="ID">
<umap:Circle>
<-- required --/>
<umap:center>0,0,0</umap:center>
<umap:radius>1000</umap:radius>
<-- optional --/>
<umap:units>kilometers</umap:units>
<umap:smoothingFactor>6</umap:smoothingFactor>
</umap:Circle>
</Polygon>
</Placemark>
<-- /Container -->| refresh | () | method |
public override function refresh(full:Boolean = false):voidParameters
full:Boolean (default = false) |
| toXML | () | method |
public override function toXML(full:Boolean = true, afcTags:Boolean = false):XML
Builds an XML object in KML 2.1 format that describes the Overlay & it's style.
Flag full indicates whether to build a complete KML data or just a container.
full:Boolean (default = true) — A value of true if you want to return a full KML file with header;
false if you want to get only a container with style and placemark nodes.
|
|
afcTags:Boolean (default = false) — Flag that determines whether to generate KML data with extended AFC tags.
|
XML — XML object in KML 2.1 format.
|
| KILOMETERS | constant |
public static const KILOMETERS:String = "kilometers"
| METERS | constant |
public static const METERS:String = "meters"
| MILES | constant |
public static const MILES:String = "miles"