Is it possible to cache iOS maps for use when the

2019-07-17 19:38发布

Is it possible to request that an iOS app stores map images of a location so that they are available when the user is not connected to the internet?

i.e. if a user is in London, is it possible to force the app to source map images for Barcelona and keep them cached, so that once the user arrives in the location (without internet connectivity) the maps are already cached?

Thanks

标签: ios maps
3条回答
混吃等死
2楼-- · 2019-07-17 20:01

It is impossible to do that with the native Maps app (Google Maps on iOS 5/ "Apple Maps" on iOS 6) that comes with iOS, since simply Apple restricts the usage of the MapKit.framework. However, you might want to try out other map solution, such as Bing Maps or OpenStreetMap. These alternatives also provide useful map data that you can consider using.

查看更多
▲ chillily
3楼-- · 2019-07-17 20:15

If you want online/offline maps you should use something like Route-me.

It basically borrows the MapKit feature-set and API and provides a much broader range of options for mapping datasources.

Also, some notable branches have derived from that project, namely https://github.com/Alpstein/route-me, which provide even more features and better performance.

查看更多
爷的心禁止访问
4楼-- · 2019-07-17 20:18

Unfortunately apple doesn't allow anybody to do that.The MapKit.framework is strictly for displaying them. However use CoreGraphics to take a "screenshot" of the certain area(i.e. the map) and save it as an image, then display that image later.

查看更多
登录 后发表回答