0

Problem

I'm developing an Android application that can display my own custom map tiles on a Google Map. The tiles need to be loaded from internal storage (so that the app can be used offline) and I'm unsure how to do this.

What I've Tried

I can get the map to display my map tiles using a UrlTileProvider along with the URLs for the tiles (when online). I believe I can also use these URLs to download the map tiles to the device's internal storage (I am still in the process of implementing this). However, I am unsure how to display the map tiles once they're on the device.

I think I need a custom TileProvider class and with a getTile method that accesses the local tiles. I have looked through many different posts on this site and elsewhere, but haven't found something quite like this. The closest thing I've found is the answer to this question, but I'm getting a lot of errors with it (which I've asked about in a separate post). The area the tiles cover is chosen/downloaded by the user, so I can't just store them as an Asset (like is done in the answer to this question).

Any help is greatly appreciated.

0 Answers0