开发者

Offline map from sdk

开发者 https://www.devze.com 2023-01-06 18:25 出处:网络
In my application i have a Mk开发者_高级运维Mapview 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 book

In my application i have a Mk开发者_高级运维Mapview 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,


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.

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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消