MapKit 显示整个地球
我正在尝试在 MKMapView 中绘制整个地球仪。通过捏合缩小,我只能缩小到一定程度。我希望能够缩小到这个级别以上,以在地图上显示整个地球。这似乎不是很困难,但我一直找不到任何解决方案。
I am trying to draw the entire globe inside my MKMapView. By pinching to zoom out I am limited to zooming out to a certain level. I would like to be able to zoom out past this level to show the entire globe on the map. This doesn't seem like it would be very difficult, but I have been unable to find any solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MKMapView
内的地图不会在侧面重复,因此您无法缩小到足够远以查看整个世界。解决方案:编写自己的渲染器(非常艰巨的任务,在地球等表面上处理坐标是一件痛苦的事情)。
The map inside an
MKMapView
doesn't repats on the sides, so you can't zoom out far enough to view the whole world.Solution: Write your own renderer (very hard task, working with coordinates on a surface like the earth is a pain).