使用地图,离线模式离线、模式、地图

2023-09-05 05:21:08 作者:拾花酿春

我开始开发的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