Turns out it's easy, I was just missing that you can declare a DragFeature
with an overload for moveFeature at the same time...

new OpenLayers.Control.DragFeature(vectorLayer,
  {
      moveFeature: function(pixel){
         // do rotation instead of move here
         this.layer.drawFeature(this.feature);
     }
)


-- 
View this message in context: 
http://n2.nabble.com/rotating-vectors-with-the-mouse-tp3739111p3751566.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to