Manage cache of MapView
I've made an application based on the Google Maps API. The problem is that my applicati开发者_运维知识库on 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 ?
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.
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/
精彩评论