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

querySourceFeatures w/ 'within' filter returns no results #10087

Closed
Delerme opened this issue Nov 10, 2020 · 3 comments
Closed

querySourceFeatures w/ 'within' filter returns no results #10087

Delerme opened this issue Nov 10, 2020 · 3 comments

Comments

@Delerme
Copy link

Delerme commented Nov 10, 2020

mapbox-gl-js version: 1.12.0

browser: Firefox

Steps to Trigger Behavior

  1. Using a tileset source, use querySourceFeatures with a 'within' polygon filter

Link to Demonstration

https://jsfiddle.net/9Lmwptou/36/

The two buttons run the same query on the airport labels source, with and without the 'within' filter. Without the filter, airports are returned fine. With the filter, no airports are returned. The filter is a rectangular polygon surrounding LGA, as validated with geojson.io

Expected Behavior

LGA is returned

Actual Behavior

No features are returned

@zmiao
Copy link
Contributor

zmiao commented Nov 10, 2020

@Delerme this issue should have been resolved by #9933

@ryanhamley
Copy link
Contributor

Yep, this has been resolved since the last release of GL JS. We're planning a v1.13 release sometime in the near future so keep an eye out. In the meantime, if you must have this fix, you can pull directly from the main branch.

@Delerme
Copy link
Author

Delerme commented Nov 10, 2020

Perfect, thanks!

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

3 participants