mapbox-directions.js icon indicating copy to clipboard operation
mapbox-directions.js copied to clipboard

Assign color to layer using a function.

Open hmendezm opened this issue 6 years ago • 0 comments

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

hmendezm avatar Jun 27 '19 15:06 hmendezm