Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Filter out duplicate features with the largest one #37

Open

Description

@tristen

It looks like multiple accessible markers are being added when features span more than one tile

duplicate

From the docs on queryrenderedfeatures:

Because features come from tiled vector data or GeoJSON data that is converted to tiles internally, feature geometries may be split or duplicated across tile boundaries and, as a result, features may appear multiple times in query results.

Its extra work from the plugin but I wonder if it should filter out duplicates and then find the largest result so the width and height of the button is accurate. cc @andrewharvey

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions