[closed] Cache Management - Selective Tile Deletion
Posted: Mon Jul 01, 2013 1:48 pm
Having the ability to create large offline map caches is great, but they can consume a large chunk of precious SD card capacity. It would be nice to have some control over the growth of these caches, over and above removing the entire lot... especially given the amount of time it takes to build them!
May I suggest utilising the existing Store Area code, but rather than it determining the area to download, instead it defines the area to make selective cached tile deletions from. In this mode, the zoom level bar would dictate the tiles to be RETAINED. Tiles beyond the selected zoom scales would then be removed from the cache.
I realise that previously allocated SQL 2Gb extent files would not be removed, but space would be released within them for tiles cached in the future.
Alternatively, why not just add an option on the download dialog to prune tiles from non-selected zoom levels, within the chosen area. As you have already written 90% of the code, I reckon that this should be reasonably easy to implement.
May I suggest utilising the existing Store Area code, but rather than it determining the area to download, instead it defines the area to make selective cached tile deletions from. In this mode, the zoom level bar would dictate the tiles to be RETAINED. Tiles beyond the selected zoom scales would then be removed from the cache.
I realise that previously allocated SQL 2Gb extent files would not be removed, but space would be released within them for tiles cached in the future.
Alternatively, why not just add an option on the download dialog to prune tiles from non-selected zoom levels, within the chosen area. As you have already written 90% of the code, I reckon that this should be reasonably easy to implement.