perliedman / leaflet-routing-machine

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

Can't fixe my WayPoints #582

Closed ElHassaniWalid closed 4 years ago

ElHassaniWalid commented 4 years ago

Hi perlieDman,

i need to fixe my route, i do not want the user to move any waypoint. I did set addWayPoints to false. But the user still can move the extremety of the route.

Is there any possibility to fix the route.

BR,

ElHassaniWalid commented 4 years ago

Hello everyody,

the solution i found : L.Routing.control({ .... plan: L.Routing.plan([],{ draggableWaypoints: false, }), ... });

it works for me.