Skip to content

querySourceFeatures can return same cluster twice #5907

Description

@muster-mark

maplibre-gl-js version: 5.2.0

browser: Google Chrome 136.0.7103.114 (Official Build) (64-bit)

Steps to Trigger Behavior

  1. Create a source using { cluster: true }
  2. Query features using map.querySourceFeatures("uk-mountains", { sourceLayer: "uk-mountains", filter: ["has", "point_count"], })

Expected Behavior

Clusters returned by querySourceFeatures should be unique, as identified by clusterId

Actual Behavior

In rare instances it can return the same cluster twice. Seems to be most likely to happen when zoomed out fully.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    need more infoFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions