适用于Google地图的Android替代品(离线) [英] Android alternative for google maps (offline)
问题描述
我正在开发一个用户可以按按钮查看地图的应用程序.我已经实现了Google Maps在应用程序内部打开以显示地图.
I'm working on an app where users could press a button to see a map. I've implemented that google maps opens inside the app to show a map.
现在我的问题是:如果没有wifi/3G,则不可能缓存地图,是否有另一种方法可以显示地图的离线版本?
Now my question is: If there is no wifi/3G it is impossible to cache the map, is there another way to show an offline version of the map?
我当时正在考虑显示地图的svg图片.我已经尝试过了,但是无法放大svg图像,所以有更好的方法吗?
I was thinking about showing an svg image of a map. I've tried that but there is no way to zoom in the svg image, so is there a better way?
推荐答案
您可以使用Open Street Map代替Google Maps. 有一个Android库,可以在线和离线运行良好: OSMDroid
You can use Open Street Map instead of Google Maps. There is an Android library which works great online and offline: OSMDroid
这篇关于适用于Google地图的Android替代品(离线)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!