Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KatherineGraham2019 opened this issue Apr 27, 2021 · 0 comments

Comments

@KatherineGraham2019
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant