在没有Internet访问的情况下显示MKMapView [英] Displaying MKMapView Without Internet Access

查看:121
本文介绍了在没有Internet访问的情况下显示MKMapView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ey伙计们,我想知道是否可以在没有有效互联网连接的情况下显示MKMapView,如果是这样,我将如何去做呢?提前致谢!

Ey guys, I was wondering if it was at all possible to display an MKMapView without an active internet connection, and if so, how would I go about doing that? Thanks in advance!

推荐答案

嗯,Jasconius,
我不确定你是对的,MKMapView使用google在线服务,您可以阅读苹果帮助:

mhm, Jasconius, i'm not sure you are right, the MKMapView uses google on-line services, as you can read on the apple help:

重要提示:MapKit框架使用Google服务提供地图数据。使用此类和相关接口会将您与Google Maps / Google Earth API服务条款绑定在一起。您可以在 http://code.google.com/apis找到这些服务条款/maps/iphone/terms.html

Important: The MapKit framework uses Google services to provide map data. Use of this class and the associated interfaces binds you to the Google Maps/Google Earth API terms of service. You can find these terms of service at http://code.google.com/apis/maps/iphone/terms.html.

如果你的应用有效...你确定它刚刚在你设备的地图区域上移动了吗?一旦你上线就尝试过吗?
如果您在线时使用googleMap并加载意大利地图,那么您关闭应用程序,然后进入飞行模式并重新启动应用程序然后您可以再次查看意大利,但如果您尝试去法国你看不到...

If your app works... are you sure it just have chaced the map area on your device when you tried it once you were on-line? If you use googleMap when you are on-line and load the italy map, then you close your the app, then go in airplane mode and restart the app then you are able to look at italy again, but if you try to go to france you don't see it...

我试图用MKMapView离线地图,但我遇到了这个问题......
现在我正在使用我自己的地图使用UIScroll和CATiledLayer加载pdf文件,结果类似于MKMapView ......

I tried to to use an off line map with MKMapView, but i had this problem... now i'm using a map of my own using a UIScroll and a CATiledLayer loading a pdf file, the result is similar to the MKMapView...

luca

这篇关于在没有Internet访问的情况下显示MKMapView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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