Select to view content in your preferred language

How to get a polygon from closed polylines with flex api?

601
1
04-07-2011 01:43 AM
jianhuizhou
Emerging Contributor
Hi,Everyone
How to get a polygon from closed polylines with flex api?
or fill the closed polylines with a graphic?
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Jianhui,

   Get the Path from the Polyline (which is a MapPoint Array) and add that using addRing to a new Polygon geometry.

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/geometry/Polygon.html
0 Kudos