perliedman / leaflet-routing-machine

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

[Question] Is there a way to turn off the pane on the right? #408

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi there, couldn't find a solution to my question in the subject, cause I just want to show the route and maybe different start and end-markers..

ghost commented 7 years ago

Got it:

var control = L.Routing.control({... }).addTo(map);
control.hide();

sorry for the duplicate..