Updating dynamically a filter to a specific layer within initial style #639
-
Hello, in my use case I need to update a filter to a specific layer, in native SDK or web I would use Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Easiest should be to dynamically render the layers as components instead of using the |
Beta Was this translation helpful? Give feedback.
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 thefilter
prop.