I know I can write an android app using open street mobile map api but I also want to support offline mode in my map. Is there a way to download开发者_JS百科 the map of a city or a country and use it locally on android phone?
thanks.
Have you looked at the Open Street Maps Wiki page for Android? There seems to be a number of open source libraries some of which may have offline caching.
You can use the following combination (it worked very well for me):
- OsmAndMapCreator: for downloading map for offline usage OsmAndMapCreator
- Osmand : andrdoid application for map navigation and tracking Osmand google project
Once you install the osmand application on your android you can set the directory on which you will save the offline maps (beside osm, you can use various other sources as google map for example and easily switch between them).
The application have already a very complete set of features, and having the code you can extend/learn from it.
精彩评论