how to make maps work offline in google maps api for android?

旧城冷巷雨未停 提交于 2019-12-07 09:36:46

问题


I am totally new to this api and I was wondering if there is a way that I can use the maps offline. I don't mind the size of the application be large so if there are anyways involved caching or something else size related, it is not a problem

Any suggestions?

ps: if it is not possible in google's api,is there a way to do this with another api form another source which provides a mapping service?


回答1:


You can try to use osmdroid to work offline with Google Maps. Osmdroid is a replacement for Android's MapView class. It also includes a modular tile provider system with support for numerous online and offline tile sources and overlay support with built-in overlays for plotting icons, tracking location, and drawing shapes.

You can follow this tutorial in how to use it.



来源:https://stackoverflow.com/questions/36600306/how-to-make-maps-work-offline-in-google-maps-api-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!