perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.06k stars 347 forks source link

waypoint is not displaying #636

Open cxsphereraja opened 2 years ago

cxsphereraja commented 2 years ago

Hi there,

I want to show the driving map between two endpoints. Can you please suggest how do I do? I just tried waypoint. How does it look like?

Can you please suggest me? I am a newbie to the map.

L.Routing.control({ waypoints: [ L.latLng(item.lat, item.long), L.latLng(lat, long) ] }).addTo(mymap);

curtisy1 commented 2 years ago

This should be working just fine. Although in case you only need a single line without any actual routing functionality, you could also use a polyline