<br><br>On Tuesday, March 6, 2012, Xavier Mamano (jorix) &lt;<a href="mailto:xavier.mamano@gmail.com">xavier.mamano@gmail.com</a>&gt; wrote:<br>&gt; Hi,<br>&gt;<br>&gt; For other reasons (<a href="http://trac.osgeo.org/openlayers/ticket/3319">http://trac.osgeo.org/openlayers/ticket/3319</a>) I was<br>
&gt; looking at the third parameter (&quot;drawing&quot;) on &quot;modify&quot; callback.<br>&gt;<br>&gt; And I thought ... &quot;point&quot; callback (&quot;point&quot; only occurs when drawing) could<br>&gt; receive a &quot;drawing&quot; parameter and for the first point would be false. So<br>
&gt; this would be the first point.<br>&gt;<br>&gt; What opinion about it?<br><br>I think we should add a sketchcreated event to the layer. This event will be triggered by the DrawFeature&#39;s create callback. The sketchstarted event would now be triggered by a point callback when this is the point point being added. This would require changing the Snapping control a bit, to make it listen to sketchcreated instead of sketchstarted. How does that sound?<br>
<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">http://www.camptocamp.com</a><br><br>