Select to view content in your preferred language

Polygon Centroid INSIDE the Polygon

3510
1
08-20-2010 10:16 AM
TylerWaring
Frequent Contributor
Greetings,

         I am trying to figure out how to force a centroid inside a polygon. I have been using:

polygon.extent.center;

There are a number of functions that follow these nested method that assume that the point falls withing the polygon.

How do you force the polygon to fall inside the center of the polygon?

Thanks,

Tyler
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Tyler,

   You have to use a GeometryService and the labelPoints function to do that look at this sample
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=LabelPoints
0 Kudos