-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 invalid feature coordinates on high zoom levels #3722
Comments
This is probably yet another consequence of #2868. I'm in process of refactoring this, after which it'll probably become clear how to fix this. |
@mourner Would you have any ideas about workarounds until the issue is fixed? |
It appears to happen at any zoom level higher than the max zoom level of my tileset. If that is the case, a workaround might be to create tiles for the higher zoom levels. |
@bdon Thanks! That change seems to fix my test case. |
Any update / workaround on this ? I don't get the Plus, I'm having this issue with a vector mapbox style layer |
Any update on this? I'm having this problem as well with a mapbox style layer |
I would love to see a fix for this. |
@bdon Your tweak seems to work for me as well @cyrilchapon Open dist (or whichever gl-js file you are looking at) and swap the two values in the ternary operator: mapbox-gl-js/js/source/tile_pyramid.js Line 151 in de61bbf
Hint if you're looking at a minified source, search for i,n,t.reparseOverscaled?o:i, and swap the o and i around |
This is still not fixed on 0.51.0 - it's better, but if you keep zooming in the heat map will disappear. The only fix so far was the one from above, however the code has changed so much since it's no longer an option. |
If the map zoom level > 16 the features returned from map.querySourceFeatures have invalid geometry coordinates (negative or otherwise nonsense).
https://jsbin.com/sesafumovi/edit?html,console,output
Can be reproduced on current master branch.
The text was updated successfully, but these errors were encountered: