Packagecom.afcomponents.umap.overlays
Classpublic class Circle
InheritanceCircle Inheritance Polygon Inheritance Overlay Inheritance MapObject Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 InheritedasDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
MapObject
 InheritedautoCloseInfo : Boolean
Gets or sets the autCloseInfo flag, which indicates whether to close info window automatically when user clicks somewhere on the map.
Overlay
 InheritedautoInfo : Boolean
Gets or sets the autInfo flag, which indicates whether to open info window automatically upon mouse click.
Overlay
  center : LatLng
Circle
 Inheritedclipping : Boolean
Polygon
 Inheritedcore : UMap
Returns reference to the core UMap object.
MapObject
 Inheriteddata : *
Gets or sets the data parameter of the Overlay.
Overlay
 Inheriteddescription : String
Gets or sets the description text of the Overlay.
Overlay
 Inheriteddraggable : Boolean
Gets or sets Overlay's draggable property.
Overlay
 Inheriteddragging : Boolean
Indicates whether Overlay is being dragged at the moment.
Overlay
 Inheritedid : uint
Gets or sets the ID of the object.
MapObject
 Inheritedinfo : IInfoWindow
Return referens to opened InfoWindow
Overlay
 InheritedinfoParam : Object
Gets or sets the info window param object.
Overlay
 InheritedinfoStyle : Object
Gets or sets the info window style object associated with the Overlay.
Overlay
 Inheritedname : String
Gets or sets the name of the object.
Overlay
 Inheritedowner : IMapObjectContainer
Returns reference to the owner container object.
MapObject
 Inheritedpoint : Point
Returns the position of the Overlay in bitmap coordinates.
Overlay
 Inheritedpoints : Array
Polygon
 Inheritedposition : LatLng
Gets or set the geographical position of the Overlay.
Overlay
  radius : Number
Circle
 InheritedsmartPosition : Boolean
Gets or sets the smartPosition flag, which indicates whether to use smart positioning with the Overlay.
Overlay
 InheritedsmartPositionOffset : Number
Overlay
  smoothingFactor : uint
Circle
  units : String
Circle
 Inheritedvisible : Boolean
Gets or sets the Overlay's visibility.
Overlay
 InheritedzIndexAuto : Boolean
Gets or sets zIndexAuto property which indicates wheter Overlay should be brought to front on mouse over event.
Overlay
Public Methods
 MethodDefined by
  
Circle(param:Object = null, style:Object = null)
Circle
 Inherited
addEventListeners(target:InteractiveObject = null):void
Adds a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.
Overlay
 Inherited
bringToFront():void
Brings target Overlay to the top of the parent's display list.
Overlay
 Inherited
Creates an exact copy of this Overlay and returns it to the user.
Overlay
 Inherited
Closes info window that is currently opened.
Overlay
 Inherited
dispose():void
Releases all the resources accuired by the object.
Polygon
 Inherited
dragStart():void
Starts Overlay dragging.
Overlay
 Inherited
dragStop():void
Stops Overlay dragging.
Overlay
  
fromXML(xml:XML, param:Object = null, style:Object = null, classObject:Class = null):Circle
[static] Creates new Circle from XML object in KML 2.1 format.
Circle
 Inherited
Retruns Overlay bounds in geographical coordinates.
Polygon
 Inherited
getBoundsXY(zoom:Number = 0):Bounds
Retruns Overlay bounds in bitmap coordinates.
Polygon
 Inherited
getStyle():Object
Returns a copy of the style object.
Polygon
 Inherited
getVertex(index:uint, lineIndex:uint = 0):LatLng
Polygon
 Inherited
getVertexCount(lineIndex:uint = 0):uint
Polygon
 Inherited
hide():void
Hides overlay.
Overlay
 Inherited
invalidate():void
Schedules the Overlay for invalidation in 1 frame after this call.
Overlay
 Inherited
openInfoWindow(param:Object = null, style:Object = null):IInfoWindow
Opens new info window with the specified parameters & style.
Overlay
 Inherited
redraw():void
Redraws the overlay.
Polygon
  
refresh(full:Boolean = false):void
Circle
 Inherited
remove():void
Removes the object from the owner container object.
MapObject
 Inherited
removeEventListeners(target:InteractiveObject = null):void
Removes a built-in listener for MouseEvents fired by an InteractiveObject contained in the Overlay.
Overlay
 Inherited
Adds the object to the specified IMapObjectContainer.
MapObject
 Inherited
setStyle(style:Object):void
Sets the style for this Overlay from an Object or another Style.
Polygon
 Inherited
show():void
Shows overlay.
Overlay
 Inherited
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
 Inherited
updateMapType(mapType:IMapType):void
Invoked when map type has been changed.
Overlay
 Inherited
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
Overlay
 Inherited
updateZoom(zoom:Number):void
Invoked when map zoom has been updated.
Overlay
Events
 EventSummaryDefined by
 Inherited Dispatched when the InfoWindow has been closed with the Overlay Overlay
 Inherited Dispatched when the InfoWindow has been opened with the Overlay Overlay
 Inherited Dispatched when an Overlay position is about to be refreshed.Overlay
 Inherited Dispatched when overlay has been added to a MapObjectContainer, e.g.Overlay
 Inherited Dispatched when an Overlay is about to be invalidated.Overlay
 Inherited Dispatched when an Overlay has been changed.Overlay
 Inherited Dispatched when user drags an Overlay.Overlay
 Inherited Dispatched when user starts dragging an Overlay.Overlay
 Inherited Dispatched when user stops dragging an Overlay.Overlay
 Inherited Dispatched when an Overlay has become invisible.Overlay
 Inherited Dispatched when user presses a mouse button over an Overlay.Overlay
 Inherited Dispatched when user moves the mouse over an Overlay.Overlay
 Inherited Dispatched when user releases a mouse button over an Overlay.Overlay
 Inherited Dispatched when an Overlay enters ready state.Overlay
 Inherited Dispatched when an Overlay has been invalidated.Overlay
 Inherited Dispatched when an Overlay position has been refreshed.Overlay
 Inherited Dispatched when user rolls out an Overlay.Overlay
 Inherited Dispatched when user rolls over an Overlay.Overlay
 Inherited Dispatched when an Overlay has become visible.Overlay
Public Constants
 ConstantDefined by
  KILOMETERS : String = "kilometers"
[static]
Circle
  METERS : String = "meters"
[static]
Circle
  MILES : String = "miles"
[static]
Circle
Property detail
centerproperty
center:LatLng  [read-write]

Implementation
    public function get center():LatLng
    public function set center(value:LatLng):void
radiusproperty 
radius:Number  [read-write]

Implementation
    public function get radius():Number
    public function set radius(value:Number):void
smoothingFactorproperty 
smoothingFactor:uint  [read-write]

Implementation
    public function get smoothingFactor():uint
    public function set smoothingFactor(value:uint):void
unitsproperty 
units:String  [read-write]

Implementation
    public function get units():String
    public function set units(value:String):void
Constructor detail
Circle()constructor
public function Circle(param:Object = null, style:Object = null)

Parameters
param:Object (default = null)
 
style:Object (default = null)
Method detail
fromXML()method
public static function fromXML(xml:XML, param:Object = null, style:Object = null, classObject:Class = null):Circle

Creates new Circle from XML object in KML 2.1 format.

Parameters
xml: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.

Returns
Circle — New Circle object.

Example
Here is a sample KML structure:
  <!-- 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.

Parameters
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.

Returns
XML — XML object in KML 2.1 format.
Constant detail
KILOMETERSconstant
public static const KILOMETERS:String = "kilometers"

METERSconstant 
public static const METERS:String = "meters"

MILESconstant 
public static const MILES:String = "miles"