Change a layer’s color with buttons
Use setPaintProperty to change a layer’s fill color.
Related examples
An extension of MapLibre GL JS
Was this helpful?
Use setPaintProperty to change a layer’s fill color.