Skip to content

Releases: FacilMap/Leaflet.DraggableLines

3.2.0

07 Jul 18:51
Compare
Choose a tag to compare
  • 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 and removeOnClick options (equivalent to enableForLayer)
  • Introduce allowDraggingLine option to control the insertion of new waypoints through hovering or clicking the line (#9)

3.1.1

06 Jul 09:54
Compare
Choose a tag to compare
  • Prevent shrinking rectangles beyond zero

3.1.0

05 Jul 23:02
Compare
Choose a tag to compare
  • Fix behaviour of rectangles (#8)
  • Fix type errors when using polygons, since in new Leaflet types Polygon and Polyline types are incompatible

3.0.2

28 May 00:00
Compare
Choose a tag to compare
  • Export functions to create default marker icons (#7)

3.0.1

27 May 20:31
Compare
Choose a tag to compare
  • Fix default marker colors (#7)

3.0.0

22 Apr 20:50
Compare
Choose a tag to compare
  • 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. Use locateOnLine() (ceiling the returned idx) as a replacement.
  • Change return type of DraggableLinesTempMarker.getRenderPoint().