mapbox-directions.js
mapbox-directions.js copied to clipboard
Assign color to layer using a function.
Hi Guys, is it a way to use a function instead of values in the stops:[]? In my case, the colors are not defined prior so there is a function that calculates them. How I can call a function with the value of the property. This function returns the color (string) best Hank