Select to view content in your preferred language

Displaying polygons as points in a feature layer

1825
2
Jump to solution
03-05-2013 08:07 PM
NANA
by
Emerging Contributor
Hello,

We want to display a polygon layer as points feature layer (with a marker symbol I guess) so there's a big enough target for a map tip in any map scale, because some of the polygons are quite small.
The option of duplicating the layer as a points layer in SDE obviously isn't optimal.

We're using ArcGIS server 10 but if there's a better solution for 10.1 I'd like to know as well.

Do you have other ideas?

Thanks
0 Kudos
1 Solution

Accepted Solutions
DominiqueBroux
Esri Frequent Contributor
One option is that you create a point layer at client side from the polygon geometries.

This Pie Chart sample is doing that. You can look at CentroidHelper class. For each polygon a point is created, the point position is either the center of the polygon if this one is inside the polygon else a geometry service is used to get a better position.

View solution in original post

0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
One option is that you create a point layer at client side from the polygon geometries.

This Pie Chart sample is doing that. You can look at CentroidHelper class. For each polygon a point is created, the point position is either the center of the polygon if this one is inside the polygon else a geometry service is used to get a better position.
0 Kudos
NANA
by
Emerging Contributor
Nice solution, thanks.
0 Kudos