[OpenLayers-Dev] 2.11 SketchStarted
eric.lemoine at camptocamp.com
Tue Mar 6 12:49:48 EST 2012
On Tuesday, March 6, 2012, Xavier Mamano (jorix) <xavier.mamano at gmail.com>
> For other reasons (http://trac.osgeo.org/openlayers/ticket/3319) I was
> looking at the third parameter ("drawing") on "modify" callback.
> And I thought ... "point" callback ("point" only occurs when drawing)
> receive a "drawing" parameter and for the first point would be false. So
> this would be the first point.
> What opinion about it?
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
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dev