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 pt
ol.coordinate the point to find nearest
coords
Array.<ol.coordinate> list of coordinates
Returns:
the nearest coordinate in the list
- Type
- ol.coordinate
-
handleDownEvent(evt)
-
Parameters:
Name Type Description evt
ol.MapBrowserEvent Map browser event.
Returns:
true
to start the drag sequence.- Type
- boolean
-
handleMoveEvent(evt)
-
Parameters:
Name Type Description evt
ol.MapBrowserEvent Event.
-
setMap(map)
-
Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass
null
to just remove the interaction from the current map.Parameters:
Name Type Description map
ol.Map Map.