You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Updating a layer filter doesn't reload all tiles #8505
Hi, I'm experiencing a bug where updating a layer filter (setting the NSPredicate in iOS) fails to update (or invalidate) a source that's currently not visible, causing it to show with the old filter when re-appering.
Steps to trigger behavior
Given a MGLVectorSource with minzoom=maxzoom=9 and a MGLLineStyleLayer with minzoom=9, maxzoom=13 and a filter/predicate A.
Zoom map through zoom 9 -> 13 (layer rendered according to filter A) -> 14 (layer disappear as expected).
Update the layer filter to filter B.
Zooming back to 13 the layer still shows according to filter A, as opposed to filter B that was expected.
Activity
Add a regression test for mapbox/mapbox-gl-native#8505
jfirebaugh commentedon Apr 5, 2017
Thanks for the detailed replication steps and diagnosis @jonkan -- you were exactly right. I've opened a pull request to fix this issue.
Add a regression test for mapbox/mapbox-gl-native#8505