如何使地图在 google maps api for android 中离线工作? [英] how to make maps work offline in google maps api for android?
问题描述
我对这个 api 完全陌生,我想知道是否有一种方法可以离线使用地图.我不介意应用程序的大小很大,所以如果无论如何都涉及缓存或其他大小相关的东西,这不是问题
I am totally new to this api and I was wondering if there is a way that I can use the maps offline. I don't mind the size of the application be large so if there are anyways involved caching or something else size related, it is not a problem
有什么建议吗?
ps:如果在 google 的 api 中不可能,有没有办法用另一个提供地图服务的源的另一个 api 来做到这一点?
ps: if it is not possible in google's api,is there a way to do this with another api form another source which provides a mapping service?
推荐答案
您可以尝试使用 osmdroid离线使用 Google 地图.Osmdroid 是 Android 的 MapView 类的替代品.它还包括一个模块化图块提供程序系统,该系统支持众多在线和离线图块源,并具有用于绘制图标、跟踪位置和绘制形状的内置叠加层的叠加支持.
You can try to use osmdroid to work offline with Google Maps. Osmdroid is a replacement for Android's MapView class. It also includes a modular tile provider system with support for numerous online and offline tile sources and overlay support with built-in overlays for plotting icons, tracking location, and drawing shapes.
您可以在以下位置关注此教程如何使用它.
You can follow this tutorial in how to use it.
这篇关于如何使地图在 google maps api for android 中离线工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!