Identify only visible features (layerdefinition)

Discussion created by killion92 on Dec 2, 2011
Latest reply on Jul 5, 2012 by santiago.lastra
I'm using a layer definition to display only a subset of features. When I then click on a point to identify it however, it frequently brings up a nearby 'invisible' feature - one that was excluded by the layer definition.

I've read this thread: but am still having no luck.

Anybody have an example of applying the identifyparams.layerdefinitions that is more complete than the reference snippet? Or another method of identifying only visible features?