Hi Antoni,

 

Yes you can, on the DragFeature control you’re using for dragging the
features, your must override the onDrag method. The signature of the method
is:

 

function(feature, pixel) {},

 

So you’ll be getting the pixel where the feature is being dragged.

 

You can also override the onStart and onComplete methods. Take a look  at
DragFeature.js. You’ll find the onStart, onDrag and onComplete. They have
some documentation, reading it should help.

 

Regards,

 

João Duarte

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Vidal, Antoni
Sent: terça-feira, 20 de Janeiro de 2009 09:14
To: [email protected]
Subject: [OpenLayers-Users] How to Get x,y of DragFeature

 

Hello,

 

How can I get the w,y when a feature is dragged ?

 

Thanks in advance

 

Antoni Vidal

Institut Cartogràfic de Catalunya    Tel: +34-93 567 1500 Ext. 3228

Parc de Montjuïc                             Fax: +34-93 567 1567

08038 Barcelona                            http://www.icc.cat
<http://www.icc.cat/> 

Spain

 

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

Reply via email to