使用Google Maps API的Android应用程序的离线模式

使用Google Maps API的Android应用程序的离线模式

问题描述:

是否可以使用Google Maps API在Android应用中使用离线模式?

Is there a way to use the offline mode in Android apps using the Google Maps API?

对教程或源代码的任何指导都会对您有很大帮助.我一直在寻找没有运气的小时.我知道Google已经发布了一种离线使用地图的方法,但是Android开发者可以使用它吗?

Any direction to a tutorial or source code would be a massive help. I've been searching for hours without any luck. I know Google has released a way of using maps offline, but is it available for Android developers?

查看此解决方案.基本上,您只需创建自己的tileprovider并在本地访问tile.使用v2 API完全可以做到. API参考

See this solution or this one. Basically you just create your own tileprovider and access tiles locally. It is totally doable with the v2 API. API Reference

周围散布着一些虚假信息,表明v2 Google Maps API需要Internet连接.有一处可是,在安装应用程序后,API要求具有一次访问权限才能通过Google Play服务进行验证,但我相信这一问题已得到解决.

There's some false information floating around out there that the v2 Google Maps API requires an Internet connection. There was a but where the API would require a single access after app install to verify with Google Play services, but I believe this has been fixed.

请参见.