Is there a way to display ONLY bicycle options in the directions control?

2 posts / 0 new
Last post
718_bkQns
Is there a way to display ONLY bicycle options in the directions control?

 I am going through the documentation and essentially i'd like to omit the option for automobiles and replace it with a bicycle.

I posted the same question on StackOverFlow—hopefully it helps with what I am interested in doing.

Thanks in advance!

https://stackoverflow.com/questions/48370438/display-only-bicycle-mode-i...


Thomas.Horacek
Bicycle Options
Hi, Interesting use case! I don't have a perfect answer for you, but you can set route options and disable the route type switch so that the routing engine only uses bicycle routing. let directionsControl = L.mapquest.directionsControl({ directions: { options: { routeType: 'bicycle' } }, routeTypeButtons: { enabled: false }, }).addTo(map);