Map styles for any use case
Design and customize your own maps
Create powerful apps with our versatile SDK
Powerful map searching and geocoding services
Enrich maps with your own data
Secure self-hosted mapping solutions
Create a visualization with a data expression for line-color.
line-color
Use the line-gradient paint property and an expression to visualize distance from the starting point of a line.
This example shows how to add a line layer to the map using the polyline layer helper.
This example shows how to add and style a GeoJSON line layer to the map using the polyline layer helper.
This example shows how to add a line layer with a color ramp symbol that changes the line color based on the map zoom level using the polyline layer helper.
Thank you! Please tell us what's unclear or missing on this page, so we can improve it for you.
Thank you for your feedback!
You've already voted on this page.
reCAPTCHA failed! Please try again.