Select to view content in your preferred language

How to customize the identifiable layer list?

1970
2
05-26-2010 07:51 AM
weiliang
Deactivated User
I want to customize the layers list that could be identified, since the information for some of the layers are not required to be identified (Current, I can roughly change the identifiable list by using identifyParameters.LayerOption = LayerOption.all/top/visable).

Thanks,

Wei
0 Kudos
2 Replies
ScottFriedrich
Regular Contributor
Look at the LayerIds property of IdentifyParameters:

Optional. When layer Ids are specified, the server treats it as a boolean "AND" operator. For example, if the LayerOption Visible is specified and the LayerIds are set to [2,5], only layers with Ids 2 and 5, if visible, are identified.
0 Kudos
weiliang
Deactivated User
It works. Many thanks, LochDhu.

Wei
0 Kudos