androidandroid-studioopenstreetmaposmdroidmbtiles

How does Android Studio display an offline map using osmdroid and mbtiles


We are working on an android app that has to display an offline map of one specific location (say 3-7 neighboring islands). We successfully displayed the whole world, but that is too heavy. And when the phone is offline, the map has limited zooming (becomes blurry and it starts lagging).

I envisioned the app to be like Maps.me, wherein if you're offline, you get continuous zooming-in of a downloaded map. Been trying to get my head around https://github.com/osmdroid/osmdroid/wiki/Offline-Map-Tiles and after 2 and a half days, I was able to get mbtiles using Maperitive. But from there, I'm confused on what the next step is. From the github tutorial, I'm stuck here: https://github.com/osmdroid/osmdroid/wiki/Offline-Map-Tiles#using-offline-tile-archives Does this mean I have to manually put the mbtiles to the path or is there a way to store and use the mbtiles automatically (or through code) ?

I just started learning about osm and android studio a few weeks ago and I need help. Badly. Someone please enlighten me.


Solution

  • And if you have suggestions for improving the wiki, please let me know