Now that you know the possible event types, let's play around with some.
EditingToolbarcontrol. As in the previous chapters,
map.layersis assumed to be the vector layer.
beforefeatureaddedevent to the map. First, like in Chapter 8, we need to create a listener function that will get called when the event fires. We know from the previous list of event types that the listener function will receive an object containing the feature, so let's create our function with a
featureparameter that will reference the ...