abhinav-adtechs / osmbonuspack

Automatically exported from code.google.com/p/osmbonuspack
0 stars 0 forks source link

Delete selected area of cache. #112

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I want to add a download manager for my application that user can download and 
delete, map of each city separately.
Right now I only have one city in application which load tiles from a zip file.

Question one : 
    Can I make osmdroid to load tiles from multiple zip files?
by this approach I can download multiple zip files and delete each one I want.

Question two :
    If I can't load tiles from multiple zip file how can delete a bounding box area from cache folder? I mean how can I found out that some cached tile are for a bounding box so I can delete them.

Original issue reported on code.google.com by hr.saleh...@gmail.com on 3 Mar 2015 at 8:39

GoogleCodeExporter commented 8 years ago
Question one : 
    Can I make osmdroid to load tiles from multiple zip files?
by this approach I can download multiple zip files and delete each one I want.

=> Yes: osmdroid loads all zip files found in OSMDROID_PATH directory. This is 
done during application startup, and there is no API to control this. 
(=> this question is more for StackOverflow than for OSMBonusPack issues... )

Question two :
    If I can't load tiles from multiple zip file how can delete a bounding box area from cache folder? I mean how can I found out that some cached tile are for a bounding box so I can delete them.

=> This is exactly what OSMBonusPack CacheManager#cleanAreaAsync method is 
doing. 

Original comment by mathieu....@gmail.com on 4 Mar 2015 at 9:44

GoogleCodeExporter commented 8 years ago

Original comment by mathieu....@gmail.com on 13 Mar 2015 at 9:23