Skip to content

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

@KatherineGraham2019

Description

@KatherineGraham2019

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions