-
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
CustomSource fantom tiles #12204
Comments
The issue has the same behaviour if loadTile returns ImageData obtained from the canvas' context. |
I fixed the Demo to present the issue more clearly |
If loadTile does throw instead of return null/undefined then everything works perfect. |
Hi @SergeiMelman, Thanks for reporting the issue! CustomSource API is still an experimental feature, and we are currently refactoring it here #12063 This PR will denote the "missing" vs. "empty" tile behavior in CustomSource by the |
Thanks for the CustomSource API. It seems the #12063 covers everything described here. |
mapbox-gl-js version:
v2.9.2, v2.10.0
browser:
Chrome, Firefox, Android Chrome (all are latest)
Steps to Trigger Behavior
NOTE
If async loadTile(tile, init) is resolving slowly, then fantom tile-picture may appear before actual tile is resolved during zooming
Link to Demonstration
https://metocean.github.io/wxtilembox/bug2.html
DEMO:
Expected Behavior
Tiles from bottom-right quadrant of the world should be visible. Others should be transparent/invisible.
Actual Behavior
At low zoom level you will see 'yelow' tiles with a wrong Z/X/Y coord imprinted.
The text was updated successfully, but these errors were encountered: