Ticket #3286 (new feature)
proposal of a possibility to unset the transformed Feature on TransformFeature deactivation
|Reported by:||jbelem||Owned by:||ahocevar|
|State:||Needs More Work|
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