Leaflet.PolylineDecorator icon indicating copy to clipboard operation
Leaflet.PolylineDecorator copied to clipboard

Geodesic support with leaflet.PolylineDecorator

Open devniz opened this issue 9 years ago • 1 comments

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.

devniz avatar Sep 19 '15 11:09 devniz

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.

zakjan avatar Feb 18 '16 06:02 zakjan