在应用中离线使用谷歌地图

[英]Use google maps offline in an app


I'm trying to develop and app that overlays some information on a google map.

我正在尝试开发和应用程序,在谷歌地图上覆盖一些信息。

I was wondering, if it is possible to cache at least a portion of this map, so that it could be used offline.

我想知道,如果可以缓存这个地图的至少一部分,那么它可以脱机使用。

3 个解决方案

#1


22  

You can use an OpenStreetMaps controller (like osmdroid) and Google Maps tiles. According to the Google Maps TOS (10.1.3.b), it seems that you can use a portion of maps if you cache it temporarily and securely. Read more at this tutorial.

您可以使用OpenStreetMaps控制器(如osmdroid)和Google Maps图块。根据Google Maps TOS(10.1.3.b),如果您临时安全地缓存它,似乎可以使用部分地图。阅读本教程的更多内容。

#2


7  

You won't have the permission to do that, as stated in Downloading/Caching Google Maps for Offline Use. However you could use the maps of OpenStreetMap or other providers who will allow this.

您无权执行此操作,如下载/缓存Google地图以供离线使用中所述。但是,您可以使用OpenStreetMap的地图或允许此操作的其他提供程序。

#3


3  

A status update in 2016:

2016年的状态更新:

Things have moved on in OSM world, and you can now get maps that are at least as good as the ones Google Maps provide using various SDK's. One of those is Mapbox Android SDK, which is vector based, and allows you to both cache things offline, and use them with a data connection.

事情已经在OSM世界中发生了变化,现在您可以获得至少与Google Maps使用各种SDK提供的地图一样好的地图。其中一个是Mapbox Android SDK,它是基于矢量的,允许您离线缓存事物,并将它们与数据连接一起使用。

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2011/05/01/98dc3b1b29deb43304ce55a48b7c3d1.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告