Adds features to the drawing source if they are missing, and updates their style each time a property changes. Adding them to the source is only necessary, if the feature originates from a deserialized state and not from a drawing action in the map.
An array of DrawingFeature objects to be added.
DrawingFeature
Deletes the provided features from the drawing source.
The list of features to be deleted.
Check if there is a vertex of a selected (=editable) feature within the pixel tolerance of the clicked coordinates.
Handles the addition of a feature to the vector source. This method is triggered when a new feature is drawn and added to the vector source at end of the draw interaction. It creates a DrawingFeature to save in the state, containing a unique id and the feature geometry as a geojson. To identify the ol feature in the map, it receives the same id as the DrawingFeature.
The add-feature event.