Reputation: 9044
I am working with osmdroid map viewer in offline mode. I have downloaded tiles with Mobile Atlas creator with osmdroid zip format and everything is ok. I want to know that is it possible to have more than one zip file? I just want 2 or 3 different locations that are far away from each other.
any help?
Upvotes: 1
Views: 2896
Reputation: 5566
OutOfMemory exception is because heapsize is full. Most/all of Android phones have small heapsize (from 16 to 48mb). There should be also a workaround - to export data into SQLite instead of ZIP, atlas creator can also do that. I havent seen OSMdroid code for a while but Im pretty sure he can also read this kind of stuff and you will not have a OutOfMemory problem then. One thing about SQLite is 2gb limit but it's still not bad.
Upvotes: 0
Reputation: 23873
Yes, you can have more than one zip file in the folder. I have 3 files corresponding to different areas on my device. They all give me a map display when offline.
Upvotes: 2
Reputation: 5566
I was thinking that there is always one zip file for one layer - like mapinik, osmarender etc.
But... I looked into the code and it seems that you might be able to do so. Take a look inside of zip file and if there is structure like: mapinik/zoomLevel/x/y - you should be able to add another file with same structure which should work.
I see that the code is looking inside all archive files for tile path. Im just not sure what "all archive files" meens and I have no time to investigate or test this :)
Hope that helped a little bit.
Upvotes: 1