当没有可用的互联网连接时,我需要某些区域的 map 。
应该是这样的:
- 用户加载应用互联网连接可用
- 应用下载坐标列表并在 map 上放置图钉
- 用户离开家并且没有互联网连接
- 即使没有互联网连接,用户也可以随时使用图钉和 map 进行互动
我该怎么做?
最佳答案
您可能不会为此使用 MKMapView 和 MapKit,但是 Google Maps Static API这使您可以直接下载静态图像(即使上面有图钉)。
Here is the example given by the Google Maps API doc itself
然后您可以存储此图像并将其显示在 UIImageView
中,例如 UIScrollView
。
关于iphone - iOS Mapkit - 缓存 map ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7696929/