-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
Available old map tiles not used #4015
Comments
I did not find a way of directly telling the cache to use all old tiles when offline, but (re-)download them if internet connection is available. |
Hmm, as you know, the cache is managed by OkHttp. I am not sure if it allows such control over it. Anyway, the way your suggestion could work is to let the But I'll not do this because I find this not so important to invest time in it. PR is welcome as long as the workaround remains relatively simple. |
Ok, I got it working and more or less ready for PR, but I noticed that it would be possible to have different |
This alternative would also reduce problems with a bad internet connection (online, but tiles can't be downloaded) |
Hmm, right |
When map tiles are older than 14 days, the files will remain in the cache, but the tiles are not displayed.
This can lead to situations where map data is available, but there is no background map shown.
How to Reproduce
[internal storage]/Android/data/de.westnordost.streetcomplete/cache/tile_cache
and see a bunch of 2 week old filesSo it seems the tile cache prefers not showing tiles over showing "too old" tiles.
At the same time the old unused tiles are not deleted, and apparently just sitting around waiting until the cache reaches maximum size.
Suggestions for solution, in order of my personal preference:
Versions affected
StreetComplete 42.0 (F-Droid)
The text was updated successfully, but these errors were encountered: