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

查看:28
本文介绍了使用 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 并在本地访问磁贴.使用 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 需要互联网连接.有一个问题,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.

thisthis.

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

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