Hi Benoît,

I think you should handle that yourself using before and after events. Looking at ModifyFeature.js, it looks like the angle of rotation is calculated by the collectRadiusHandle method, but not returned. Plus, that method seems to be called on each modification in order to have a moving feature as the user moves the rotation point feature.

I hope that helps,

Alexandre


On 10-12-30 03:08 AM, Benoît Frébault wrote:
 Hi,

I use the control Modify Feature to allow my user to rotate a polygon.
At the end of the rotation, i would like to get the angle of this rotation. Is there an easy way, already implemented, to do that? Or I need to use events before and after the rotation to calcul the rotation's angle?

Thanks

Benoit


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to