Leaflet – How to Draw Curved Lines on Maps

leafletpolyline-creationsvg

So, I'm trying to draw curved lines in my application which is based on a Leaflet map.

As far as I know Leaflet does not support drawing curved lines at the moment, so my question is really more about how to best get some curved line funtionality in there.

The problem is made more difficult because my code will have to be IE-8 compatible, which means that pure SVG is no solution. (Leaflet actually does a fall-back to VML if it detects that no SVG support is present…)

So one possibility would be to myself write some leaflet extension code based on SVG with its own fallback to VML. This would be a hell of a lot of work. :/

Does anyone have a better proposition?

Best Answer

You can use the arc.js plugin for leaflet to draw curved lines.

Related Question