如何使地图在谷歌地图api中脱机工作android? [英] how to make maps work offline in google maps api for android?

查看:106
本文介绍了如何使地图在谷歌地图api中脱机工作android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个api完全陌生,我想知道是否有一种方法可以离线使用地图。我不介意应用程序的大小很大,所以如果涉及缓存或其他大小相关的问题,这不是问题。



有什么建议吗? p>

ps:如果在google的api中不可行,是否有一种方法可以与另一个api构成另一个提供映射服务的源?

解决方案

您可以尝试使用 osmdroid 使用Google地图离线工作。 Osmdroid是Android的MapView类的替代品。它还包括一个模块化磁贴供应商系统,支持多种在线和离线磁贴来源和叠加支持,并带有内置叠加层,用于绘制图标,追踪位置和绘图形状。

您可以按照以下教程了解如何使用它。


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

Any suggestions?

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?

解决方案

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.

这篇关于如何使地图在谷歌地图api中脱机工作android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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