For now, the offset option can only take a given offset from the start or the end of the line in either meters or pixels.
But is it possible to write something like
var polyline = L.polyline(latlngs).arrowheads({offsets: {end: '50%'}})
?
Or maybe a way to get the polyline length and calculate an offset from there ?
Thanks in advance
For now, the offset option can only take a given offset from the start or the end of the line in either meters or pixels. But is it possible to write something like
var polyline = L.polyline(latlngs).arrowheads({offsets: {end: '50%'}})
? Or maybe a way to get the polyline length and calculate an offset from there ? Thanks in advance