[OpenLayers-Users] rotating vectors with the mouse

kstump stump at lisapettitdesigns.com
Wed Sep 30 16:44:36 EDT 2009




Roald de Wit wrote:
> 
> Hi Kelly,
> 
> Is this what you're looking for?
> http://www.openlayers.org/dev/examples/modify-feature.html
> 
> Regards, Roald
> 
> 
> 


that's where I'm starting, but I need to modify the behaviour..   the
standard ModifyFeature control sets the origin to the center and creates a
point for the user to click on to rotate, which isn't consistant with the
application.  

I'm trying to have the user click and drag the shape itself to rotate it,
instead of the extra point that ModifyFeature creates.

after poking around at it a little more, it seems like overloading the
"move" function in Handler.Drag will work, but I haven't quite figured out
how to pull it off yet.
-- 
View this message in context: http://n2.nabble.com/rotating-vectors-with-the-mouse-tp3739111p3745227.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list