For the identify parameters layerOption, you can choose from:
'LAYER_OPTION_ALL', 'LAYER_OPTION_TOP', 'LAYER_OPTION_VISIBLE'
These options query against the default service visibilities and layer orders, correct?
I was putting together the the identify sample with the toggle layer example, and even though I turned a layer off, I would still get an identify result if I clicked on a feature. For example, turn off lakes, click where a lake is, and I'd get the lake even though it wasn't visible.
Thanks,
George