Select to view content in your preferred language

separate styling of individual polygon rings?

804
2
01-27-2011 02:33 AM
grahamcooke
Regular Contributor
Is it possible to style different rings of the same polygon individually?

I have created a polygon based on business rules and user input and in some instances i need to draw an outline around that polygon depending on whether the user elects to create a safety zone around this polygon. Unfortunately this is not as simple as creating a simple buffer because the outline actually ends up being a different shape to the inner polygon. (I believe buffers will follow the shape of the polygon they buffer exactly? Please correct me if i'm wrong!)

The outline polygon needs to be red, regardless of the colour selected by the user (using colorpicker) for the inner polygon.

I know I could easily do this as 2 separate graphics (because I've done it). The problem is the user needs to be able to select the shape on screen and drag it around, so it would be easier to handle the polygons as one individual graphic within the graphics layer.

Has anyone got any ideas please? Is this possible without using 2 different graphics?
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Graham,


  Take a look at the drive time polygon sample:

http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=GP_DriveTimePolygons
0 Kudos
grahamcooke
Regular Contributor
Thanks for your reply Robert. i had a look at the sample....so I need to look into a uniquevaluerenderer then? Will have a play with this when i get back to my desk.

I am not at my workstation. i have to use a machine in a different building to view anything that displays flash applications over the internet as it is blocked for our workstations as we are at a ministry of defence site. we can use flash over the intranet but not the internet. So everytime I post here, or view the gis samples i have to get up and come over here!)

I will post my findings / any more questions when I get a chance.

cheers,

Graham
0 Kudos