Packagecom.esri.aws.awx.map.layers.overlays
Classpublic class Circle
InheritanceCircle Inheritance OverlayObject Inheritance mx.core.UIComponent

A circle overlay represents a geographic circle and consists of both a CircleShape and a PolygonStyle. With geographic circle we mean a circle that has a certain radii in km or miles, and thus gets more ellipsoid-ish the further away from the equator you go. FYI: To just draw a simple point, use Marker with a CircleMarkerStyle.


Example
Sample ActionScript usage of Circle:
     new Circle(new CircleShape(new GeoPoint(-110,10),700,CircleShape.KILOMETERS), new PolygonStyle());
     new Circle(new CircleShape(new GeoPoint(-110,30),700,CircleShape.KILOMETERS), new PolygonStyle(0xff00ff));
     new Circle(new CircleShape(new GeoPoint(-110,40),700,CircleShape.KILOMETERS), new PolygonStyle(0xffff00,0.5,3,0xFF0000));
     

Sample MXML usage of Circle:
     <awx:Circle centerGeoY="64.09" centerGeoX="-21.93" radius="500" units="kilometers"/>
     <awx:Circle centerGeoY="64.09" centerGeoX="-21.93" radius="500" units="kilometers" toolTip="Reykjavik"/>
     <awx:Circle centerGeoY="-30" centerGeoX="-110" radius="500" units="miles" toolTip="Circle with CircleMarkerStyle">
       <awx:style>
         <awx:PolygonStyle color="0x00FFFF" outlineColor="0xFF0000" outlineThickness="3"/>
       <awx:style>
     <awx:Circle>
     

See also

Live Sample - Add Marker - Flex API
Live Sample - Add Marker - JavaScript to Flex Bridge
UIComponent
com.esri.aws.awx.geom.CircleShape
com.esri.aws.awx.map.layers.overlays.style.PolygonStyle


Public Properties
 PropertyDefined by
 InheritedoverlayStyle : IStyle
The style of the overlay object.
OverlayObject
 Inheritedshape : IShape
The shape of the overlay object.
OverlayObject
 Inheritedstyle : IStyle
DEPRECATED
OverlayObject
  units : String
Circle
Public Methods
 MethodDefined by
  
Circle(shape:CircleShape = null, style:IStyle = null)
Creates a new Circle.
Circle
 Inherited
Removes all children from the child list of this container.
OverlayObject
Property detail
unitsproperty
public var units:String
Constructor detail
Circle()constructor
public function Circle(shape:CircleShape = null, style:IStyle = null)

Creates a new Circle.

Parameters
shape:CircleShape (default = null) — The Circle geometry.
 
style:IStyle (default = null) — The style used to render the Circle.