Closed tumluliu closed 9 years ago
Solved by just removing the path.leaflet-clickable
section.
Is it the right way?
Yeah, removing that CSS is a good workaround. In 2f5ee4dd281bd21706ee9c5d087c2c4b8da6f527 I've removed it and made the route layer style configurable.
Great to see the codes in the commit. Many thanks, jfirebaugh.
I would like to set different styles for different types of path, e.g. black solid line for driving path, blue line for cycling, dashed line for walking, etc.
I tried adding a style function for the routeLayer in layer.js like this:
But it does not work. The path is always in '#3bb2d0', 4px width and 0.75 opacity which is defined by
path.leaflet-clickable
in mapbox.directions.css.