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.
[iOS] Predicate "extrude == true" does not correctly filter results #9056
However, this does not work. I have tested it out with different capitalizations as well. In order to correctly filter buildings/building parts, the predicate should be: layer.predicate = NSPredicate(format: "extrude == %@ AND height >= 0", "true")
Is this is intended behavior, or is just correcting the documentation will be enough.
It turns out that the extrude property in the Mapbox Streets v7 source is a string (either "true" or "false") rather than a Boolean value. (That isn’t apparent from the source documentation.) So MGLFillExtrusionStyleLayer’s documentation should be updated to use the format string extrude == 'true' rather than extrude == TRUE.
Activity
1ec5 commentedon May 19, 2017
It turns out that the
extrudeproperty in the Mapbox Streets v7 source is a string (either"true"or"false") rather than a Boolean value. (That isn’t apparent from the source documentation.) So MGLFillExtrusionStyleLayer’s documentation should be updated to use the format stringextrude == 'true'rather thanextrude == TRUE./cc @ajashton
[ios, macos] changed TRUE -> 'true' (#9059) fixes #9056
1ec5 commentedon May 20, 2017
Fixed in #9059 on the release-ios-v3.6.0-android-v5.1.0 branch.
Merge release-ios-v3.6.0-android-v5.1.0 to master (#9170)
Merge release-ios-v3.6.0-android-v5.1.0 (#9416)