Skip to content

Updating dynamically a filter to a specific layer within initial style #639

Answered by KiwiKilian
simon-milleto asked this question in Q&A
Discussion options

You must be logged in to vote

Easiest should be to dynamically render the layers as components instead of using the mapStyle prop. Any layer from a style JSON can be "translated" into the corresponding layer component within MapLibre React Native. Using the layers you can just update the filter props, see this example which uses the filter prop.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simon-milleto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants