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

fix queryRenderedFeatures box across dateline #2321

Closed
ansis opened this issue Mar 23, 2016 · 4 comments
Closed

fix queryRenderedFeatures box across dateline #2321

ansis opened this issue Mar 23, 2016 · 4 comments

Comments

@ansis
Copy link
Contributor

ansis commented Mar 23, 2016

mapbox-gl-js version: 8b52b55

Steps to Trigger Behavior

  1. query a full screen box at zoom 0

Expected Behavior

Returns all features.

Actual Behavior

Returns a subset of features based on the wrapped coordinates of the box corners.

@ansis
Copy link
Contributor Author

ansis commented Mar 23, 2016

If you are zoomed out and there are multiple copies of a polygon, should queryRenderedFeatures return a feature for every instance visible on the screen? Or should it return only one feature?
screen shot 2016-03-23 at 1 56 34 pm

@mcwhittemore
Copy link
Contributor

@ansis I'd expect it to only return one. It is returning the features not the renderings. If you update one of them the other will move.

@ansis
Copy link
Contributor Author

ansis commented Mar 24, 2016

@mcwhittemore great. It'll return one

This is fixed by 7531605

@mcwhittemore
Copy link
Contributor

@ansis 👍 Should we close this?

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

No branches or pull requests

2 participants