ol-ext: Split interaction
is an interaction to split linestrings by clicking on a point on the feature (ol.geom.LineString only).
The feature is cloned. The interaction fires a beforesplit and aftersplit event.
You can listen to the event on the interaction itself or on the source of the splitted feature.
The sources provided to the interaction must have a spatial index to be splitable (configured with useSpatialIndex set to true).
NB: If you look to a split feature agent while editing vector features, look at ol.interaction.Splitter