[OpenLayers-Trac] [OpenLayers] #3286: proposal of a possibility to
unset the transformed Feature on TransformFeature deactivation
OpenLayers
trac-20090302 at openlayers.org
Tue May 3 05:27:57 EDT 2011
#3286: proposal of a possibility to unset the transformed Feature on
TransformFeature deactivation
--------------------------------------+-------------------------------------
Reporter: jbelem | Owner: ahocevar
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Control.TransformFeature | Version: 2.10
Keywords: | State: Review
--------------------------------------+-------------------------------------
I thought about a possibility to reset a feature of an
OpenLayers.Control.TransformFeature, like when activating this control the
first time (feature is null and naturally no box is drawn).
When trying to call setFeature(null) on this control (e.g. to signal the
control to loose any information about the just transformed feature) an
error (in setFeature method) says "this.feature" is null.
Therefore a way how to force the behaviour of the control on each
activation to have the necessity of a feature to be set by a user first
would be great, e.g. some workflow doing an unsetFeature(..) action, which
might be applicable by this provided patch (please review!).
Thanks
João Belém
--
Ticket URL: <http://trac.openlayers.org/ticket/3286>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list