[OpenLayers-Users] How to Get x,y of DragFeature
Joao Duarte
joao.c.duarte at co.sapo.pt
Tue Jan 20 04:50:34 EST 2009
Hi Antoni,
Yes you can, on the DragFeature control youre using for dragging the
features, your must override the onDrag method. The signature of the method
is:
function(feature, pixel) {},
So youll 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. Youll find the onStart, onDrag and onComplete. They have
some documentation, reading it should help.
Regards,
João Duarte
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of Vidal, Antoni
Sent: terça-feira, 20 de Janeiro de 2009 09:14
To: users at openlayers.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090120/0e1451e1/attachment.html
More information about the Users
mailing list