Select to view content in your preferred language

Identify and Limit Number of Services Layers and Fields

1444
13
06-09-2010 11:41 AM
BrettFlodine
Emerging Contributor
Hello, I am using Robert Scheitlin's version 1.3 custom identify tool and I have 2 base map services and 1 live map service being used in my flex project.  When I use the identify tool it will select features from all 3 map services.  I would like to customize it to just identify on 2 layers in the one live map service.  Any suggestions would be appreciated.
Tags (2)
0 Kudos
13 Replies
SpencerLace
Occasional Contributor
Thanks, I am changing the mxml, but the issue for me is the fields that were nicely specified in Robert's older example since the tool only worked on one service, the layer and its fields could be contained in the XML tags.
Now, we have a layer.id that is giving a service to use and the layerIds = [0,1] for the layers in the map, but I don't get to say which fields.  Of course its just so I don't have to disable fields in the layers of the service itself.  I suppose I need one more parameter.  Or am I confused?
0 Kudos
BrettFlodine
Emerging Contributor
Spencer,

The layer id's in the mxml file specify which layers to identify but then you need to edit the xml file to specify the layers and field names to show in the identify for the layers you have selected in the mxml file. if it would help I could upload my final xml and mxml files.

Brett
0 Kudos
SpencerLace
Occasional Contributor
That makes sense - I had removed the xml stuff when I saw this newer function.  And yes, it would be great to see your final code.    Thank you!
0 Kudos
BrettFlodine
Emerging Contributor
Spencer,

I have added my xml and mxml code to this post. Let me know if you have any questions.

Brett
0 Kudos