使用Google Maps API的Android应用程序的离线模式 [英] Offline mode for Android app using the Google Maps API

查看:148
本文介绍了使用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.

请参见.

这篇关于使用Google Maps API的Android应用程序的离线模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆