使用谷歌地图API离线模式的Andr​​oid应用 [英] Offline mode for android app using google maps api

查看:164
本文介绍了使用谷歌地图API离线模式的Andr​​oid应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,如果有一种方法可以使用​​在使用谷歌地图API的Andr​​oid应用程序的离线模式?

I'm just wondering if there is a way to use the offline mode on android apps using google maps api?

任意方向教程或源$ C ​​$ C将是一个巨大的帮助。我一直在寻找小时,没有任何运气。我知道,谷歌已经发布了使用地图离线的方式,我只需要知道它是否可用于Android开发?

Any direction to tutorial or source code would be a massive help. I've been searching for hours without any luck. I know google have released a way of using maps offline, I just need to know if it's available for android developers?

推荐答案

看到这个解决方案这个。基本上你只在本地创建自己的tileprovider和访问砖。完全可行的V2 API。
<一href="https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/model/TileProvider">API参考

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

有一些虚假信息,漂浮在那里,第2版谷歌地图API需要互联网连接。有一个,但其中API将需要的应用程序后,一个单一的接入安装验证与谷歌播放服务,但我相信这已得到修复。 请参阅<一href="http://stackoverflow.com/questions/16056156/using-the-android-google-maps-api-v2-as-a-viewer-of-offline-tiles-is-it-possibl">this和这个

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. See this and this.

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

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