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.




    
JavaScript Maps API

Examples