Skip to content
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.

[iOS] Predicate "extrude == true" does not correctly filter results #9056

@jmkiley

Description

@jmkiley

Platform: iOS
Mapbox SDK version: v3.6.0-alpha.1

The documentation for MGLFillExtrusionStyleLayer currently suggests that developers use the following predicate:

layer.predicate = NSPredicate(format: "extrude == TRUE")

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.

cc @1ec5 @incanus @boundsj

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions