mozilla / MozStumbler

Android Stumbler for Mozilla
http://location.services.mozilla.com
Mozilla Public License 2.0
618 stars 212 forks source link

Tiles caching doesn't seem to be working when switching from wifi to 3G #1405

Open kparal opened 9 years ago

kparal commented 9 years ago

In 1.5.5 release notes, I saw:

Tiles will now persist and show up when there is no internet connection

So I started stumbler at my home while being on wifi, and scrolled through my entire city in different zoom levels, so that I have high quality tiles cached of the whole city.

But when I stepped out and my wifi got replaced by a 3G connection, as soon as I looked at stumbler, the high-quality tiles got thrown away and it started to download and display low-quality tiles of my surroundings. (My configuration is to use low quality tiles when not on wifi).

So, the caching doesn't seem to work properly. Maybe when not on wifi, it insists on using low-quality tiles instead of reusing the already cached high-quality ones? Or there's some other problem with caching?

stumbler 1.5.5

cascheberg commented 9 years ago

This is a duplicate of #954. The caching works, the cached high-res tiles are not actually thrown away. But the app completly switches to the low-res map based on the internet connection anyway, so the high-res tiles are not used. The easy workaround would be to always either use only low- or high-resolution tiles, or use that to cache low-res tiles at home as well. I wonder if it would be a good idea and easy to implement that for all viewed high-res tiles the according low-res tiles are always downloaded and cached as well.

Djfe commented 9 years ago

That wouldn't be a good way to solve this imo because it would take up more space on your device and look worse than it could be

and it would download the low-res tiles on mobile as well (if you activated high-res only ) which would lead to more traffic than needed

garvankeeley commented 9 years ago

We would like to have the map component use the cached higher resolution tiles if available when on cell networks. It is challenging and time-consuming to fix. However I don't want to scare anyone off trying :).