This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
MGLSymbolStyleLayer predicate option change #12259
Closed
Description
Platform: iOS
Mapbox SDK version: 4.1.0
Steps to trigger behavior
- I added the MGLSymbolStyleLayer with geojson file and I got the three of features
- I added a single tap gesture recognizer to change the predicate of the MGLSymbolStyleLayer
- I found a strange thing that is the count of visible features
Expected behavior
-
I expected that the count of visible features is 2 when the predicate is like this.
-
I expected that the count of visible features is 3 when the predicate is nil back.
Actual behavior
-
Actual the count of visible features is 3 when the case 1
-
Actual the count of visible features is 2 when the case 2
The visible features aren't refreshed immediately after changing predicate.
If there is a changed feature after changing predicate then I got the collect list of visible features.
Also If I move the map after changing predicate, I got the collect list.
Is it a bug???