react-map-gl-draw icon indicating copy to clipboard operation
react-map-gl-draw copied to clipboard

Mapbox GL Data Driven Styles Are not working as expected for me

Open KatherineGraham2019 opened this issue 3 years ago • 0 comments

Hey,

I am currently trying to use properties to set feature colors using the following syntax but having issues making styles work with properties.

styles={[{ 'type': 'fill', 'paint': { 'fill-color': ['get', "color"], 'fill-outline-color': "#008BCE", 'fill-opacity': 0.2 } }]}

This is my syntax, I set a color property on each feature. Any help and guidance on why this isn't working would be great. I was unable to find documentation on how to use mapbox gl's data drive styles with this react version.

Thanks

KatherineGraham2019 avatar Apr 27 '21 16:04 KatherineGraham2019