Leaflet.PolylineDecorator
Leaflet.PolylineDecorator copied to clipboard
Geodesic support with leaflet.PolylineDecorator
Hi,
I know that Leaflet.PolylineDecorator accept only two types of layer:
- L.Polyline
- L.Polygon
I wonder if you already consider to support Geodesic type? I am currently trying to create a geodesic using this library Leaflet Geodesic and add a simple symbol in the middle of the line (custom icon or filled circle).
Thank you.
Just use L.geodesicConvertLines function to convert your straight line to a geodesic line, and render it with regular L.Polyline. Later it can be used in L.polylineDecorator.