Use google maps offline in an app

半城伤御伤魂 提交于 2019-12-17 17:25:51

问题


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.


回答1:


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.




回答2:


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.




回答3:


A status update in 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.



来源:https://stackoverflow.com/questions/5847353/use-google-maps-offline-in-an-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!