[OpenLayers-Trac] [OpenLayers] #1553: Add the ability to enable/disable controls
OpenLayers
trac at openlayers.org
Tue May 20 08:14:37 EDT 2008
#1553: Add the ability to enable/disable controls
--------------------------+-------------------------------------------------
Reporter: fvanderbiest | Owner:
Type: feature | Status: new
Priority: minor | Milestone:
Component: Control | Version: SVN
Keywords: | State:
--------------------------+-------------------------------------------------
Currently, OpenLayers controls can be activated/deactivated but not
enabled/disabled.
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).
A simple use case would be the enabling/disabling of the SelectFeature or
ModifyFeature controls, based on the presence of features in the vector
layer they are attached to.
Appropriate events should be triggered when a control is enabled/disabled.
--
Ticket URL: <http://trac.openlayers.org/ticket/1553>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list