Sun, 01/21/2018 - 13:31
#1
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...
Mon, 01/22/2018 - 08:58
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);