I'm trying to use the identify functionality that is in the Identify sample. I have set
LayerOption = LayerOption.Visible
just as in the sample. I assumed this means that all layers are accessible by the identify tool, but only layers that are checked as visible in the web application at any given time will be identified. That's what I want.
But what's happening is that the identify function is only working on the layers that I set as visible in the original .mxd (and which therefore show initially as visible when I load the web site). Those layers will always be identified in the web application whether they are visible or not, and other layers will never be identified whether they are visible or not.
Is this what's supposed to happen? How can I get it to behave as I want? Thanks so much for any help...