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 bbox broken with circle-translate #6833

Closed
hyperknot opened this issue Jun 19, 2018 · 3 comments
Closed

queryRenderedFeatures bbox broken with circle-translate #6833

hyperknot opened this issue Jun 19, 2018 · 3 comments
Labels

Comments

@hyperknot
Copy link

mapbox-gl-js version: 0.45.0
browser: Chrome latest

Steps to Trigger Behavior

  1. Have a circle layer with circle-translate
  2. Run queryRenderedFeatures with bbox on that layer

Link to Demonstration

https://jsbin.com/viqafex
(based on official example "using-box-queryrenderedfeatures")

Expected Behavior

All features should be selected

Actual Behavior

Some features are randomly missing. If you move the map around, different features are missing.

screenflow

@mourner
Copy link
Member

mourner commented Jun 19, 2018

Related: #2653

@ThiyagarajanShivSankaran

@mourner Even we are also facing this issue. Please, fix this immediately.

@hyperknot
Copy link
Author

@ThiyagarajanShivSankaran a workaround is to add a helper layer with circle-opacity: 0 and no circle-translate. It's not super precise but works well.

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

No branches or pull requests

3 participants