[OpenLayers-Users] rotating vectors with the mouse

Roald de Wit roald.dewit at lisasoft.com
Wed Sep 30 06:49:36 EDT 2009


Hi Kelly,

kstump wrote:
> I'm trying to implement a special handler that will rotate a shape around a
> point when the user drags it, instead of actually moving the shape, and I'm
> getting a little lost in all the choices...
>
> does it make sense to implement a new "move" in Openlayers.Handler.Drag
> or to implement the onDrag and onComplete in DragFeature ..  
> or even change a ModifyFeature to not display a draghandle, but let the user
> just drag the shape to rotate it..
>
> Any ideas of what might work?
>   

Is this what you're looking for?
http://www.openlayers.org/dev/examples/modify-feature.html

Regards, Roald





More information about the Users mailing list