-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 querySourceFeatures returning bad results on zooms past maxZoom #7061
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The coordinate fix looks good!
src/geo/transform.js
Outdated
@@ -248,7 +246,7 @@ class Transform { | |||
this.pointCoordinate(new Point(this.width, this.height), z), | |||
this.pointCoordinate(new Point(0, this.height), z) | |||
]; | |||
return tileCover(z, cornerCoords, options.reparseOverscaled ? actualZ : z, this._renderWorldCopies) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work for raster sources past their max zoom level? I think the previous behaviour was that it used the existing tiles from the max zoom level. Does this end up creating new tiles?
6222c85
to
326eed6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I also noticed (after the PR) that #4990 inadvertently contains the same fix. Sorry for not noticing earlier @asheemmamoowala! |
I'm not sure that this fixes #3722 it sets reparseOverscaled to true, which seemingly does the opposite as the geometries coming back at zoom levels greater than 16 are still wrong |
Fixes #2868. Fixes #3722.
I also removed thereparseOverscaled
source option because it doesn't seem useful — we always want to reparse overscaled tiles for correct layout values, and we don't need to worry about performance because parsing overscaled tiles is very fast anyway (there's only a few on the screen and they're small).Launch Checklist
document any changes to public APIspost benchmark scores