Is there a way to toggle enablePickFeatures for a layer?


is there a way to enable and disable the enablePickFeatures function during runtime? The idea is that the user should explicitly enable picking for a specific layer whenever he wants to use it, and disable it afterwards. Otherwise - due to the number and nature of our layers - I fear that the server would have to deal with way too many requests.

Thanks in advance, Heiner