<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {mso-style-priority:99;
        mso-style-link:"E-mail Signature Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.E-mailSignatureChar
        {mso-style-name:"E-mail Signature Char";
        mso-style-priority:99;
        mso-style-link:"E-mail Signature";
        font-family:"Calibri","sans-serif";}
span.estilocorreo17
        {mso-style-name:estilocorreo17;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=PT link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Antoni,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Yes you can, on the DragFeature control you&#8217;re using for
dragging the features, your must override the onDrag method. The signature of
the method is:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>function(feature, pixel) {},<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>So you&#8217;ll be getting the pixel where the feature is being
dragged.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You can also override the onStart and onComplete methods. Take a
look  at DragFeature.js. You&#8217;ll find the onStart, onDrag and onComplete. They
have some documentation, reading it should help.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>João Duarte<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <b>On Behalf Of </b>Vidal, Antoni<br>
<b>Sent:</b> terça-feira, 20 de Janeiro de 2009 09:14<br>
<b>To:</b> users@openlayers.org<br>
<b>Subject:</b> [OpenLayers-Users] How to Get x,y of DragFeature<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span lang=CA style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hello,</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span lang=CA style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span lang=CA style='font-size:10.0pt;font-family:"Arial","sans-serif"'>How
can I get the w,y when a feature is dragged ?</span><span lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span lang=CA style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span lang=CA style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks
in advance</span><span lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span lang=CA style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><b><span lang=CA
style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Antoni Vidal</span></b><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=CA style='font-size:
8.0pt;font-family:"Arial","sans-serif"'>Institut Cartogràfic de
Catalunya&nbsp;&nbsp;&nbsp; <b>Tel: +34-93 567 1500 Ext. 3228</b></span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=CA style='font-size:
8.0pt;font-family:"Arial","sans-serif"'>Parc de
Montjuïc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b>Fax: +34-93 567 1567</b></span><span lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=CA style='font-size:
8.0pt;font-family:"Arial","sans-serif"'>08038
Barcelona&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.icc.cat/">http://www.icc.cat</a></span><span lang=EN-US><o:p></o:p></span></p>

<p class=MsoAutoSig><span lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Spain</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span lang=CA>&nbsp;</span><span lang=EN-US><o:p></o:p></span></p>

</div>

</body>

</html>