Hi list,<br><br>Currently, OpenLayers controls can be activated/deactivated but not enabled/disabled.<br>In my mind, a disabled control should not be able to change state, nor being triggered, and its panel button would be grayed out (either in OpenLayers or MapFish panel). <br>
<br>A simple use case would be the enabling/disabling of&nbsp;the SelectFeature control, based&nbsp;on the presence of features&nbsp;in the vector layer it is attached to. Other controls working on a vector layer&#39;s features could take advantage of this new feature too.<br>
Ticket 1535 (&quot;featuresremoved&quot; events on vector layers) would be of great help to do this. <br><br>I just wanted to have your feedback on this before I write a ticket.<br><br>Thank&#39;s to you all, <br><br>F.<br>