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

Filter out duplicate features with the largest one #37

Open
tristen opened this issue Sep 20, 2020 · 0 comments
Open

Filter out duplicate features with the largest one #37

tristen opened this issue Sep 20, 2020 · 0 comments
Labels

Comments

@tristen
Copy link
Member

tristen commented Sep 20, 2020

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

@tristen tristen added the bug label Sep 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant