Select to view content in your preferred language

Overlapping polygons on graphics layer / Symbol States issue

2961
2
04-18-2011 05:55 AM
BrentStevener
Deactivated User
We have a feature class that has polygons that overlap, and some polygons are entirely self-contained inside of a larger polygon, which is a separate feature. I am manually drawing these features in a graphics layer and applying symbol states to where it highlights the graphic when you hover over it.

The problem is that the larger polygon will always be selected on the instances where there are polygon features inside the boundary of it, so you won't be able to actually hover/select the smaller polygon that is inside. How can I address this issue?

If it is a drawing order type of thing (draw larger polygons before smaller, etc), then I can draw in the order I need to, but in one case, this won't work. If I have three features, one is the large area, and the other two are halves of the same area, then regardless of what order I draw them or order them, either the large area won't be able to be selected, or the smaller two areas won't be able to.
0 Kudos
2 Replies
BrentStevener
Deactivated User
I think I'm going create 'callouts' (circle and line connecting the features, not sure what you actually call that) that are actually part of the feature that extend outside the main polygons where you could hover over and have it highlight using the normal symbol states.

If anyone can think of another solution that wouldn't involve editing the actual features, feel free to respond.
0 Kudos
JenniferNery
Esri Regular Contributor
If you know features will be overlapping, you can give a higher ZIndex to the graphic that may be placed behind another graphic or give a lower ZIndex to the graphic on mouse enter so that you can view any graphics that it may have obstructed. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Graphic~Se....
0 Kudos