简体   繁体   English

在没有互联网连接的情况下在iOS中使用MapView

[英]Use MapView in iOS without internet connection

Can we show current user location on MapView in iOS without internet? 我们可以在没有互联网的情况下在iOS MapView上显示当前用户位置吗? Also is it possible to show route between current location and some other location without internet? 还可以显示没有互联网的当前位置和其他位置之间的路线吗? Any help will be appreciated. 任何帮助将不胜感激。

Yes, you can. 是的你可以。 User location can be retrieved via cellular or GPS (if exists) without Wi-Fi. 可以在没有Wi-Fi的情况下通过蜂窝网络或GPS(如果存在)来检索用户位置。 Core Location deals with that (source for retrieving location) internally. 核心位置在内部处理该内容(用于获取位置的来源)。

For more information you can take a look at this piece of my code 有关更多信息,请看一下我的这段代码

You may also find somehow helpful this answer and definitely take a look here which is almost your question. 您可能还会发现此答案有帮助,并且绝对可以在这里看看这几乎是您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM