I am having problems with my viewer I created. The Viewer allows a user to select a layer from a dropdown and from that layer use the Query tools to query that specific layer. To populate the Dropdown I just looped through all visibles layers. But the problem is that the Service/MXD contains another service ( Almost like a BASEMAP ) . But that layer is an Image Service. And also Unselectable. The problem is that the client designed this MXD and I cant change anything.
Now the query task fails on that layers.
How can I determine all the layers that are queryable/selectable. I cannot find a property on LayerInfo. Only if its visible. The viewer is not specific to a Service. Its a plug in viewer and should work on any Service I specify.
Any Solutions or Suggestions on how to get this list of layers. I am using an ArcGISDynamicMapServiceLayer.