Ticket #1945 (closed feature: fixed)
Add extra sketch and figure events to classes to increase drawing capabilities
| Reported by: | openlayers | Owned by: | tschaub |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.8 Release |
| Component: | Layer.Vector | Version: | SVN |
| Keywords: | Cc: | john.diss@… | |
| State: | Complete |
Description
These would allow the developer to hook events such as: * sketchstarted - the very first vertex of a new shape or mouse down with the Drag or RegularPolygon handler * sketchbeginfigure - a new shape is being drawn, fired everytime a shape is started either by a Drag/RegularPolygon Handler or by DrawFeature control * sketchfigurecomplete - called when the Drag or RegularPolgon mouse up event occurs or the DrawFeature control creates its target geometry. Impacts the following classes: Layer.Vector, Control.DrawFeature, Handler.Drag, Handler.RegularPolygon.
Possible use case: Only allow one feature at a time to be drawn on a vector layer. When the next figure starts clear the features ready for the new one.
Attached patch targets svn revision 8870 Submitted by John Diss (CCLIA: Newgrove Consultants Limited)

