how I can display a direction through Waypoints on a Leaflet map.
I used "leaflet-routing-machine" but I can not view the route
L.Routing.control({
waypoints: [
L.latLng(52.5002237, -2.94),
L.latLng(52.5002237, -0.949),
L.latLng(52.5002237, -1.949)
],
autoRoute: true,
routeWhileDragging: true,
}).addTo(map);
any idea or example plz
you can find a complete example here (https://codepen.io/mahmoud-nb/pen/RZzNYr)
You should check your console errors. The request to router.project-osrm.org failed: