[OpenLayers-Users] rotating vectors with the mouse

kstump stump at lisapettitdesigns.com
Thu Oct 1 15:53:59 EDT 2009


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.



More information about the Users mailing list