SO GREAT  !! Thanks a lot for implementing that.<br>This is really powerful and usable.<br>Some CAD systems provide also the possibility to snap, for example, at the intersections of lines (without having a real point) or in the middle of circle. Usually, the cursor will change depending of the type of snapping. But this is of course more than a nice to have.<br>

Thanks again !<br>Cédric<br><br><br><div class="gmail_quote">On Thu, Jan 13, 2011 at 3:26 PM, Eric Lemoine <span dir="ltr">&lt;<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Wed, Jan 12, 2011 at 1:22 PM, Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt; wrote:<br>


&gt; Hi Eric,<br>
&gt;<br>
&gt; thanks for your efforts. My only concern is that adding vertices on mouseup instead of mousedown negatively affects the user experience when a Snapping control is used. This is because the user doesn&#39;t see any more where the vertex is going to be snapped to.<br>


&gt;<br>
&gt; At this point, I have no idea how to solve this.<br>
<br>
</div>Thanks for explaining.<br>
<br>
Some of us here at Camptocamp have discussed this a bit further, and<br>
we&#39;ve come up with a potential solution to this issue, where the first<br>
point to be laid down is drawn as the soon as the control is active<br>
(or the previous feature is finalized).<br>
<br>
See the demo on<br>
&lt;<a href="http://dev.openlayers.org/sandbox/elemoine/draw-feature/examples/snapping.html" target="_blank">http://dev.openlayers.org/sandbox/elemoine/draw-feature/examples/snapping.html</a>&gt;.<br>
You should have a point following the mouse as soon as the draw tool<br>
is made active in the toolbar.<br>
<br>
Cheers,<br>
<div><div></div><div class="h5"><br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>Welcome to my world: <a href="http://www.cedricmoullet.com/" target="_blank">http://www.cedricmoullet.com/</a><br>My Linked In profile: <a href="http://www.linkedin.com/in/cedricmoullet" target="_blank">http://www.linkedin.com/in/cedricmoullet</a><br>

Twitter: <a href="http://twitter.com/cedricmoullet" target="_blank">http://twitter.com/cedricmoullet</a></div>
<div>Home sweet home: <a href="http://map.geo.admin.ch/?crosshair=bowl&amp;zoom=11&amp;X=185241.24219&amp;Y=561288.90625&amp;bgOpacity=0&amp;selectedNode=node_ch.swisstopo.fixpunkte-lage1" target="_blank">http://map.geo.admin.ch/?crosshair=bowl&amp;zoom=11&amp;X=185241.24219&amp;Y=561288.90625&amp;bgOpacity=0&amp;selectedNode=node_ch.swisstopo.fixpunkte-lage1</a></div>

<br>