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
Use setPaintProperty to change a layer’s fill color.
setPaintProperty
Use the interpolate expression to ease-in the building layer and smoothly fade from one color to the next.
Create a visualization with a data expression for line-color.
This example shows how to create a custom color ramp and use it to visualize a point layer.
This example shows how to add a point layer colored and sized according to the property "mag" (= earthquake magnitude) to the map using the point 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.