sdk的离线地图 [英] Offline map from sdk
问题描述
在我的应用程序中,我有一个MkMapview,现在它显示了当前位置.即使没有Wi-Fi连接,我也必须在其他一些位置添加书签并显示该位置.如何为该位置添加书签,以及如何显示离线地图?如何将地图保存到缓存?是否有可能? 谢谢,
In my application i have a MkMapview and now it shows current location. i have to bookmark some other locations and show that locations even if there is no Wi-Fi connection. How to bookmark that locations and how to display the offline maps? how to save map to cache? is it possible? Thanks,
推荐答案
据我所知,没有公共可用的API来缓存MKMapView使用的地图图像.这样做可能还会违反Google的条款和条件.
As far as I know, there is no public available API for caching the map images used by MKMapView. You might also be in violation of Googles terms and conditions by doing this.
但是,Google提供了静态地图API ,抓取地图的静态部分作为图像文件,并可能将其缓存以供以后显示.但是再次,请检查Google的条款与条件.
However, Google have provided a static map API where you can grab a static portion of a map as an image file and possible cache this for later display. But again, check Google's T&C.
通过 SO问题,显示了有关如何使用这些API的一些提示.
There are a number of other map services available through the GData API, but they are somewhat more complex to use. This SO question, shows a few hints on how to use these API's.
这篇关于sdk的离线地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!