This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
GeoJSON (Shape) sources initialized with MGLShape objects should work with predicate filters #7336
Labels
bug
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
release blocker
Blocks the next final release
runtime styling
Milestone
In #7145 we modified
MGLGeoJSONSource
so that it can be created with anMGLShape
. However, sinceMGLShape
does not convey a feature'sidentifier
andattributes
properties, we lost the ability to apply a NSPredicate filter to a layer for the source created with a shape.For instance, this used to work:
Now, If the
layer.predicate
is set, the feature is not visible since the attributes cannot be found on the object (shape).cc @frederoni @1ec5
The text was updated successfully, but these errors were encountered: