Select to view content in your preferred language

Excluding layers in the Identify Widget

613
2
07-01-2010 07:25 AM
TristanKnowlton
Frequent Contributor
Does anyone know if there is a way to exclude layers in the .xml config file for the identify widget?

I would like some layers to be ignored if they are clicked on.  I have so many layers in my map document to achieve the symbology I wanted but I don't want them all to be identified when clicked on.

Thanks!
Tags (2)
0 Kudos
2 Replies
JacksonTrappett
Frequent Contributor
One easy way is to just specify the layers you do want to be included in the identify when you are setting your identify parameters:

var identifyParams:IdentifyParameters = new IdentifyParameters();
identifyParams.layerIds = [58,59,60,61];


The layer numbers you specify correspond to the layer numbers you can find in the rest services directory for the service you are running the ID on.
0 Kudos
TristanKnowlton
Frequent Contributor
Thank you very much, I changed the layerIds from "null" to the specific layer id in the for loop.

Works great thanks so much!!!
0 Kudos