Create a gradient line using an expression
Use the line-gradient
paint property and an expression to visualize distance from the starting point of a line.
Related examples
An extension of MapLibre GL JS
Use the line-gradient
paint property and an expression to visualize distance from the starting point of a line.