Ticket #1904 (closed feature: fixed)
add sketchcomplete and vertexmodified events to vector layers
| Reported by: | tschaub | Owned by: | crschmidt |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.8 Release |
| Component: | Layer.Vector | Version: | 2.7 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
The "featureadded" and "featuremodified" events are triggered on the vector layer any time a feature is added (by any means) or modified. It is useful to know when a new feature is drawn on a vector layer. The draw control has a "featureadded" event, but other components do not necessarily have a reference to the draw control. Adding a "sketchcomplete" event lets listeners know when something has drawn a new feature on the layer (and they can keep it from being added if they wish). In addition, the modify feature control lets listeners (of layer events) know when a modification is complete (a vertex is done being dragged). However, there is no notification as a vertex is being dragged. The "vertexmodified" event serves this purpose. It is triggered with each move of a vertex.

