[OpenLayers-Dev] Re: 2.11 sketchstarted - new event?
Xavier Mamano (jorix)
xavier.mamano at gmail.com
Sun Mar 11 18:09:08 EDT 2012
See https://github.com/openlayers/openlayers/pull/314 +
* The "DrawFeature" control does not trigger "sketchstarted" event when
using a "Handler.Point".
* It may be interesting to distinguish between "sketchmodified" before
"sketchstarted" and after (not Implemented)
Tests run on: IE8 IE9 Chrome17 FF10 and Safari5
> On Thu, Mar 8, 2012 at 6:00 PM, Richard Greenwood
> <richard.greenwood@> wrote:
>> Earlier this week there was discussion about the 2.11 change in
>> behavior of the of the sketchstarted event.
>> Some of us were relying on that event to detect when the first vertex
>> was added to a path or polygon. Eric Lemoine suggested a workaround
>> that is okay with callbacks, but not so good with LAYER.events.on().
>> How about a new event 'firstvertexadded' that does what sketchstarted
>> did before 2.11?
> If someone can do a pull request introducing a sketchcreated event
> type as I described it in the previous thread, I can review it and
> merge it into master (or 2.12 branch). The patch would basically
> involve (a) replacing the current sketchstarted event by
> sketchcreated, and (b) triggering sketchstarted when the first vertex
> is added (and (c) adding tests, and making sure they pass in multiple
> Eric Lemoine
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine@
> Dev mailing list
> Dev at .osgeo
View this message in context: http://osgeo-org.1560.n6.nabble.com/2-11-sketchstarted-new-event-tp4559041p4568364.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev