如何在android下载谷歌地图的特定区域 [英] How to download specific region of google map in android

查看:123
本文介绍了如何在android下载谷歌地图的特定区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个将在屏幕上显示谷歌地图的Android应用程序。通过点击按钮,用户可以下载他/她的特定区域并将其存储在内部存储器中。稍后,当互联网连接较差或不可用时,用户可以使用先前下载的离线地图。如何制作这种应用程序。请指导我。谢谢。

解决方案

您应该仔细阅读 Google Maps APIs服务条款,尤其是10.5(d)和10.5(e),因为从技术上讲,您可以通过Google Maps服务器(临时)一系列网址,例如 http:// mt1。 google.com/vt/lyrs=m&x=95&y=55&z=7 ,然后为Google地图创建自定义磁贴供应商,如 回答 Alex Vasilkov 。另请参阅 回答肯迪


I am making an android application that will show google map on the screen. By clicking on a button user can download a the his/her specific region and store that in internal storage. Later when internet connection is poor or not available then user can use the offline map downloaded earlier. How to make this kind of app. Please guide me.. Thanks.

解决方案

You should carefully read Google Maps APIs Terms of Service especially 10.5 (d) and 10.5 (e), because technically you can (temporary) download tiles for specific region from Google Maps server via series of URLs like http://mt1.google.com/vt/lyrs=m&x=95&y=55&z=7 and then create custom tile provider for Google Maps like in this answer of Alex Vasilkov. Also take a look at this answer of KENdi.

这篇关于如何在android下载谷歌地图的特定区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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