Identify Task identifys also invisble features (LayerDefinition)

538
5
09-11-2011 10:38 PM
UlfGrimhardt
New Contributor
Hi,

in my app i use dynamic LayerDefinitions to make features visible and invisible.
Problem is, that if i use the identify task even the invisible features are part of the task.
How can i solve this problem and identify only the visible features?

Thanks!
0 Kudos
5 Replies
De_WetEllis
New Contributor III
Hi

The Identify Parameters have a Property - LayerOption.
LayerOption.visible will then only identify on the Visible Layers.

If its something you tried and didnt work. You can Also get a list array of all the visible layers you want to identify on and set the LayerIds property of the Identify Parameters.

Regards
De Wet
0 Kudos
DominiqueBroux
Esri Frequent Contributor
LayerDefinitions of IdentifyParameter should to the trick (documentation).
Set it with the same value you set your service so only viisble features (i.e. same layer defintion) will be identified.
0 Kudos
UlfGrimhardt
New Contributor
Mhmm there is no LayerDefinition of IdentifyParameter.
Is it possible that this is only possible with ArcGIS Server 10 and Silverlight API Version above 1.2?
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Mhmm there is no LayerDefinition of IdentifyParameter.
Is it possible that this is only possible with ArcGIS Server 10 and Silverlight API Version above 1.2?


Right.
The LayerDefinitions parameter has been added in 2.0.
0 Kudos
UlfGrimhardt
New Contributor
Is there a way to get or create a list of those features that are still visible after using the LayerDefinition?

Using this i maybe could get rid of the other (invisible) identified features without ArcGIS 10 by comparing the list of visible features with the one with all identified features.
0 Kudos