<br><br>On Tuesday, March 6, 2012, Xavier Mamano (jorix) <<a href="mailto:xavier.mamano@gmail.com">xavier.mamano@gmail.com</a>> wrote:<br>> Hi,<br>><br>> For other reasons (<a href="http://trac.osgeo.org/openlayers/ticket/3319">http://trac.osgeo.org/openlayers/ticket/3319</a>) I was<br>
> looking at the third parameter ("drawing") on "modify" callback.<br>><br>> And I thought ... "point" callback ("point" only occurs when drawing) could<br>> receive a "drawing" parameter and for the first point would be false. So<br>
> this would be the first point.<br>><br>> 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'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>