Packagecom.esri.aws.awx.map.layers.overlays
Classpublic dynamic class Polygon
InheritancePolygon Inheritance OverlayObject Inheritance mx.core.UIComponent

A polygon consists of both a PolygonShape and a style.

See also

com.esri.aws.awx.geom.GeoPoint
com.esri.aws.awx.geom.PolygonShape
com.esri.aws.awx.map.layers.overlays.style.IStyle;


Public Properties
 PropertyDefined by
  geoPoints : Array
The array of GeoPoint locations that defines the polygon.
Polygon
 InheritedoverlayStyle : IStyle
The style of the overlay object.
OverlayObject
 Inheritedshape : IShape
The shape of the overlay object.
OverlayObject
 Inheritedstyle : IStyle
DEPRECATED
OverlayObject
Public Methods
 MethodDefined by
  
Polygon(shape:PolygonShape = null, style:IStyle = null)
Creates a new Polygon with the given PolygonShape, and an optional style.
Polygon
  
addGeoPoint(geoPoint:GeoPoint):void
Adds a new GeoPoint to the shape.
Polygon
  
addGeoPointArray(geoPoints:Array):void
Adds a new set of GeoPoints to the shape.
Polygon
 Inherited
Removes all children from the child list of this container.
OverlayObject
Property detail
geoPointsproperty
public var geoPoints:Array

The array of GeoPoint locations that defines the polygon.

This property can be used as the source for data binding.

Constructor detail
Polygon()constructor
public function Polygon(shape:PolygonShape = null, style:IStyle = null)

Creates a new Polygon with the given PolygonShape, and an optional style.

Parameters
shape:PolygonShape (default = null) — The polygon geometry
 
style:IStyle (default = null) — The style used to render the polygon
Method detail
addGeoPoint()method
public function addGeoPoint(geoPoint:GeoPoint):void

Adds a new GeoPoint to the shape.

Parameters
geoPoint:GeoPoint — the new GeoPoint to add.
addGeoPointArray()method 
public function addGeoPointArray(geoPoints:Array):void

Adds a new set of GeoPoints to the shape.

Parameters
geoPoints:Array — array of GeoPoints to add.