使用地图,离线模式 [英] Using maps in offline mode

查看:169
本文介绍了使用地图,离线模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始开发的Andr​​oid应用程序的项目。 对于这个项目,我需要一个地图,我可以画圆形,折线和多边形,并单击这一切绘制形状,显示大约每一个信息。在这一点上,Google地图+ spatialite或Google地图+四叉树+ utils的,以确定是否一个经纬度属于一个圆/折线/多边形就可以解决问题,但我还有一个要求:我需要缓存地图的一个区,它的工作在没有互联网的街道。我知道,谷歌地图的官方应用程序可以用OK地图中日打字做到这一点,但有无论如何要使用高速缓存在我的应用程序?还有另一种方式才去街道办的地图缓存,并没有去上网?

I'm starting developing a project of an android app. For this project i need a map where i can draw circles, polylines and polygons and click in all of this draw shapes to show informations about each one. At this point, googlemaps + spatialite or googlemaps + quadtree + utils to identify if a LatLng belongs to a circle/polyline/polygon can solve the problem but i have one more requirement: i need to cache a zone of the map to work with it on the street without internet. I know that google maps official app can do this with th typing of "Ok Maps" but there are anyway to use that cache in my application? There are another way to do a cache of the map before going to the street and go without internet?

preferably我想使用谷歌地图,但我将不得不使用另一个API?怎么办?

Preferably i would like to use google maps but I'll have to use another api? What?

问候

推荐答案

由于需要对谷歌检查你的API密钥,我还没有看到任何第三方应用程序访问谷歌地图离线。如果你需要离线功能,主要解决方案之一是一种叫做osmdroid其中有一个类似的界面,谷歌地图,但你可以缓存切片以供离线使用。

Due to the need for Google to check your api key, I have not seen any way for third party apps to access google maps offline. If you need offline capabilities, one of the main solutions is something called osmdroid which has a similar interface to google maps but you can cache tiles for offline use.

OSMDroid

这篇关于使用地图,离线模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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