Fork me on GitHub

OL3-ext: Split interaction

ol.interaction.Split is an interaction to split feature geometry by clicking on a point on the feature (ol.geom.LineString).
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.

Options: