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.

MGLSymbolStyleLayer predicate option change #12259

Closed
@JamieJeon

Description

@JamieJeon

Platform: iOS
Mapbox SDK version: 4.1.0

Steps to trigger behavior

  1. I added the MGLSymbolStyleLayer with geojson file and I got the three of features
  2. I added a single tap gesture recognizer to change the predicate of the MGLSymbolStyleLayer
  3. I found a strange thing that is the count of visible features

Expected behavior

  1. I expected that the count of visible features is 2 when the predicate is like this.
    2018-06-29 11 35 22
    poi2

  2. I expected that the count of visible features is 3 when the predicate is nil back.
    2018-06-29 11 37 00
    poi3

Actual behavior

  1. Actual the count of visible features is 3 when the case 1

  2. 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???

Metadata

Metadata

Assignees

No one assigned

    Labels

    archivedArchived because of inactivitybugiOSMapbox Maps SDK for iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions