Home » Android » android – Manage cache of MapView

android – Manage cache of MapView

Posted by: admin June 15, 2020 Leave a comment

Questions:

I’ve made an application based on the Google Maps API. The problem is that my application is made to be used in the wild, in places where there is no network.
So I would like to manage the cache in order to ensure that specific tiles are saved and available during the trip (I’d like to redirect them in database but any method may do).

For now, I didn’t found any other method (not tested) than try to recode the MapView class. I’m focusing on Google API in order to have satellite photography (for places where there are no roads). What could I do ?

How to&Answers:

What you want is in violation of the Android Maps APIs Terms of Service (see section 8.2). You will need to find an alternative mapping engine to use, perhaps based on OpenStreetMap.

Answer:

osmdroid now provides a library that can almost be used as a Google Maps replacement. It can support offline maps by downloading and extracting AndNav map tiles.

http://code.google.com/p/osmdroid/