Selecting overlapping features

1039
3
10-10-2011 05:08 AM
MartynLe_Butt
New Contributor
I have 3 concentric polygons in one featurelayer. Is there a way that the user can select any of the polygons to edit because at the moment whichever one is clicked on it is the outside polygon which always gets selected.  I could possibly turn off the 2 that are not wanted but then the user wouldn't be able to edit the selected one whilst still seeing the others, which is important.
Any ideas?
Thanks

Martyn
Tags (2)
0 Kudos
3 Replies
YungKaiChin
Occasional Contributor
Try to set featureLayer.moveToTop to false and see if this solves your problem.
0 Kudos
HaroldBostic
Occasional Contributor II
Did you find a solution to your problem?
0 Kudos
IvanBespalov
Occasional Contributor III
Hi,

Have you tried something like Clustering? I'm not sure, but maybe it will help.

Also FeatureLayer has public property selectedFeatures = Array of Graphics in the current selection of this feature layer. It's readonly. This gives you the opportunity to make a new selection request with the choice of advanced query options.
For example: (1) on client map click -> (2) new selection query based on geometry -> (3) as a result featureLayer.selectedFeatures -> (4) find needed feature in this Array -> (5) new selection query based on feature id.
Maybe some of the steps are not needed. But the idea that all objects in FeatureLayer are the result of query from the server.
0 Kudos