如何在MKMapView中显示整个地球 [英] How to display entire globe in MKMapView

查看:76
本文介绍了如何在MKMapView中显示整个地球的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个地图应用程序,我想使用户能够放大到整个地球.我正在使用MKMapView.我看到iOS地图应用程序中提供了此功能.

I am working on a map app and I want to enable user to zoom out to entire globe. I am using MKMapView. I saw that this feature is available in iOS map app.

任何人都可以告诉我如何在我的应用程序中实现同样的目标.

Can anyone tell how can I achieve the same in my app.

推荐答案

自从下面出现错误信息以来,这真是令人难过.
至少在iOS 12,2018年11月如此简单.

It's like so sad since there have been so wrong informations down below.
It's so easy to do at least in iOS 12, November 2018.

这就是获得全球视野所需要做的一切.

That's all you need to do to get globe view.

要么

mapView.mapType = .satelliteFlyover 

mapView.mapType = .hybridFlyover

(我不确定,它没有技术基础,但是根据我的经验,.hybridFlyover感觉表现更好)

(I am not sure and it has no technical basis but it feels like .hybridFlyover shows better performance in my experience)

尽管如此:p ;;
我确保它能正常工作,因为我之前做过.

That's all though :p;;
I make sure it works because I did it right before.

我希望您觉得它有用.

这篇关于如何在MKMapView中显示整个地球的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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