draw line enter 2 coordinates leaflet

0

I have a marker with the coordinates located:

función onLocationFound(e) {
    var radius = e.accuracy / 2;

    L.marker(e.latlng).addTo(map)
        .bindPopup("You are within " + radius + " meters from this point").openPopup();

    L.circle(e.latlng, radius).addTo(map);
}

and using the polyline leaflet function , I want to draw a line between the marker and the position to any marker.

    
asked by francesc 03.01.2019 в 20:40
source

0 answers