hi all, <br>starting from the Drag-feature example (<a href="http://openlayers.org/dev/examples/drag-feature.html">http://openlayers.org/dev/examples/drag-feature.html</a>) I need to limit to 1 the number of points which can be added to the vector layer<br>

if the user, after having added one point, clicks again, the first point is deleted and only the newly created remains.<br>I need this for localization purpose: i.e. &quot;Dear User, tell me where THAT_THING is&quot; so the position must be unique.<br>

<br>I also need to extract coordinates from the point (document.getElementById(&quot;x_coord&quot;).value = ???)<br><br>Can anyone help me?<br><br>thank you in advance!<br>alberto<br>