mapbox / mapbox-gl-directions

Directions plugin for mapbox-gl-js using Mapbox Directions API.
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
ISC License
235 stars 124 forks source link

Unable to style line colour/width in Directions #274

Open maksimumeffort opened 3 years ago

maksimumeffort commented 3 years ago

Hey everyone,

I have tried to use this directions plugin for a project and after following all available documentation/ instructions and tutorials to a T I am still unable to change the style of the directions layer applied on the map.

I also tried to import the hardcoded directions style (available at https://github.com/mapbox/mapbox-gl-directions/blob/master/src/directions_style.js) into my project as a separate document and change it there, but that didn't work either. Any help or suggestions would be very much appreciated

Marius-Adam commented 3 years ago

I am also trying to change the styles of the line colour/width + the point A & point B markers. Have you managed to solve this in any way?

xiaofanliang commented 1 year ago

Same issue here. Still not resolved.