Select to view content in your preferred language

how to get boundary of polygons?

1004
2
04-19-2011 02:51 AM
jianhuizhou
Emerging Contributor
Hi,Everyone
I have a polygon by QueryTask.I want to fill this polygon with a color but another color for it's  boundary .
So I want to know how to get the boundary of polygon and return a ployline.

Thanks!
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
jianhui,

   All you do is assign a new SimpleLineSymbol to the outline property of the SimpleFillSymbol for the graphic you are trying to change.

<esri:SimpleLineSymbol id="sline" style="solid" color="0x448ccb" width="2" alpha="0.8"/>
<esri:SimpleFillSymbol id="spoly" style="solid" color="0x448ccb" alpha="0.4" outline="{sline}"/>
0 Kudos
jianhuizhou
Emerging Contributor
Thanks !
I have found this method.but my ploygon is combined from multiple polygon,I don't want all the boundary but the combined polygon's.
Any idea?
0 Kudos