Made transformcomplete listener do as documented - return the transformed feature. p=patzi, r=me (closes #2714)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -47,7 +47,7 @@ OpenLayers.Control.TransformFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
* <OpenLayers.Geometry.Point> object with the new center of the
|
* <OpenLayers.Geometry.Point> object with the new center of the
|
||||||
* transformed feature, the others are Floats with the scale, ratio
|
* transformed feature, the others are Floats with the scale, ratio
|
||||||
* or rotation change of the feature since the last transformation.
|
* or rotation change of the feature since the last transformation.
|
||||||
* - *transformcomplete" Triggered after dragging. Listeners receive
|
* - *transformcomplete* Triggered after dragging. Listeners receive
|
||||||
* an event object with the transformed *feature*.
|
* an event object with the transformed *feature*.
|
||||||
*/
|
*/
|
||||||
EVENT_TYPES: ["beforesetfeature", "setfeature", "beforetransform",
|
EVENT_TYPES: ["beforesetfeature", "setfeature", "beforetransform",
|
||||||
@@ -499,7 +499,7 @@ OpenLayers.Control.TransformFeature = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
},
|
},
|
||||||
onComplete: function(feature, pixel) {
|
onComplete: function(feature, pixel) {
|
||||||
control.events.triggerEvent("transformcomplete",
|
control.events.triggerEvent("transformcomplete",
|
||||||
{feature: feature});
|
{feature: control.feature});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user