new Split(options)
Interaction split interaction for splitting feature geometry
Parameters:
| Name | Type | Description |
|---|---|---|
options |
olx.interaction.SplitOptions | source {ol.source.Vector|Array{ol.source.Vector}} a list of source to split (configured with useSpatialIndex set to true) |
Fires:
- beforesplit, aftersplit,event: pointermove
Extends
- ol.interaction.Interaction
Methods
-
getNearestCoord(pt, coords)
-
Get nearest coordinate in a list
Parameters:
Name Type Description ptol.coordinate the point to find nearest
coordsArray.<ol.coordinate> list of coordinates
Returns:
the nearest coordinate in the list
- Type
- ol.coordinate
-
handleDownEvent(evt)
-
Parameters:
Name Type Description evtol.MapBrowserEvent Map browser event.
Returns:
trueto start the drag sequence.- Type
- boolean
-
handleMoveEvent(evt)
-
Parameters:
Name Type Description evtol.MapBrowserEvent Event.
-
setMap(map)
-
Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass
nullto just remove the interaction from the current map.Parameters:
Name Type Description mapol.Map Map.
ol-ext