iOS Mapkit-缓存地图? [英] iOS Mapkit - Cache maps?

查看:106
本文介绍了iOS Mapkit-缓存地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当没有互联网连接时,我需要某些区域的地图.

I need maps of certain areas available when no internet connection is available.

是这样的:

  1. 用户可以加载应用程序互联网连接
  2. 应用程序下载坐标列表并将图钉放置在地图上
  3. 用户离开他们的房子并且没有互联网连接
  4. 即使没有互联网连接,用户仍然可以轻松使用图钉和地图进行交互

我该怎么做?

推荐答案

您可能不会为此使用MKMapView和MapKit,但是

You probably won't use MKMapView and MapKit for that, but the Google Maps Static API that allows you to download static images (even with pins on it) directly.

然后,您可以存储此图像并将其显示在UIScrollView中的UIImageView中.

Then you can store this image and display it in an UIImageView in a UIScrollView for example.

这篇关于iOS Mapkit-缓存地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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