Releases: FacilMap/Leaflet.DraggableLines
Releases · FacilMap/Leaflet.DraggableLines
3.2.1
3.2.0
- Bugfix: Properly remove map event handlers when disabling
DraggableLinesHandler
- Allow more control by specifying a layer, an array of layers or a callback as
allowExtendingLine
andremoveOnClick
options (equivalent toenableForLayer
) - Introduce
allowDraggingLine
option to control the insertion of new waypoints through hovering or clicking the line (#9)
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
- Move away from Leaflet.GeometryUtil and use an algorithm that is more optimized for the specific use case of Leaflet.DraggableLines (#6).
- Cache the indexes of the route points and hover marker rather than recalculating them on every mouse move, drastically improving performance for lines with a large number of route points (#6)
Breaking changes:
- Remove
getInsertPosition()
function. UselocateOnLine()
(ceil
ing the returnedidx
) as a replacement. - Change return type of
DraggableLinesTempMarker.getRenderPoint()
.