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 returns incorrect geometries after a certain zoom level #4677

Closed
drewbo opened this issue May 3, 2017 · 2 comments
Closed

Comments

@drewbo
Copy link
Contributor

drewbo commented May 3, 2017

Using version 0.37.0 and recreated with this fiddle (click on the top box to recalculate those values)

screen shot 2017-05-03 at 4 54 22 pm

querySourceFeatures should return features from loaded/nearby source tiles. It's unclear if it returning the wrong features or if only the geometry getter is affected but the returned geometries don't appear to be within (or nearby) the map bounds. It only happens after a certain zoom level (in this example, 9). A little more investigation revealed that the feature.tile was sometimes returning twice the x and y values I expected but this was difficult to recreate and not always present.

@mollymerp
Copy link
Contributor

Hi @drewbo – thanks for the report. This has to do with the source's maxzoom(which in your example is 8) and I believe is related to the ticket you cut previously #2868. I also think this is a duplicate of #3722. closing here to move discussion over there.

@drewbo
Copy link
Contributor Author

drewbo commented May 4, 2017

Thanks @mollymerp and sorry for duplicating!

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