A
A
Alexander Vasyuchenko2015-12-08 15:03:50
leaflet
Alexander Vasyuchenko, 2015-12-08 15:03:50

How to draw a line in Leaflet with a length in meters?

How to draw lines on a map in Leaflet not in pixels or coordinates (latitude/longitude) but in meters? I did not find anything in the docks for such a conversion.
Of the figures, only for the circle (L.circle) the radius is specified in meters.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Edward, 2015-12-08
@alexv1981

Perhaps you should convert meters to degrees and draw a line in degrees?

I
Ilya Voronkov, 2015-12-08
@iliaftk

You can see leaflet draw. Supports custom settings bl.ocks.org/d3noob/7730264
Plugin itself https://github.com/Leaflet/Leaflet.draw

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question