-
Notifications
You must be signed in to change notification settings - Fork 240
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
Tile fallback #2120
base: main
Are you sure you want to change the base?
Tile fallback #2120
Conversation
Is it intended to be an MBTiles-datasource-only feature? |
This seems related to the |
@bcamper I have currently implemented it for @matteblair I know about |
Oh my comment wasn't clear - I meant that if you don't have a constant maximum z across your data source, then |
So I will be waiting for your review of this pull request. I can also do any changes/updates to it. |
Add support for getting tile for lower zoom if tile for higher zoom is not available.
Use case and current state:
User has mbtiles tile source which for some areas has tile data let's say only for zoom 10. Then he zooms to zoom 15 and the current state is that on the map he does not see anything. In this case it would be better to see a tile from zoom 10 rather than nothing.
New behavior:
When user want to show some location on the map and tile is not available in mbtiles, it would search tile parents until mbtiles contain some parent which does exist in mbtiles and then return
TileID
of that parent.I have implemented it for
MBTilesDataSource
andMemoryCacheDataSource
.