Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queryRenderedFeatures returns already deleted features #2353

Closed
BrunoSalerno opened this issue Mar 29, 2016 · 1 comment · Fixed by #2354
Closed

queryRenderedFeatures returns already deleted features #2353

BrunoSalerno opened this issue Mar 29, 2016 · 1 comment · Fixed by #2354
Assignees
Labels

Comments

@BrunoSalerno
Copy link

Basically is #2177 but with queryRenderedFeatures.

Context

mapbox-gl-js version: 16.0

Expected behavior

When deleting features using setData I expect them not to be shown by queryRenderedFeatures (because they don't exist anymore!)

Actual behavior

Deleted features still visible with queryRenderedFeatures

Js Fiddle: https://jsfiddle.net/brunosalerno/tpus0kv8

Steps to reproduce the behavior (in the fiddle):

Open the console.
Press the Add features button. (adds TWO features)
Press the Remove one feature button THREE times.
Move the mouse over the area where the features were. The hover will detect the missing features.

@ansis
Copy link
Contributor

ansis commented Mar 29, 2016

Sorry about the regression! fixed in master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants