MKMapView 中的缩放级别是否有上限?
浏览了这里的一些问题后,我对缩放级别和 MKMapView 有了一个大概的了解。然后我发现了这个很棒的博客:
http: //troybrant.net/blog/2010/01/set-the-zoom-level-of-an-mkmapview/
但是当我尝试该博客中的代码时,我觉得似乎是缩放级别的上限。也就是说,无论我将zoomLevel设置得多大,它总是被限制在16之类的值。这个zoomLevel对应的longitudeDelta是0.003433。
在这个问题中,MKMapView setRegion“捕捉”到预定义的缩放级别? ,pseudopeach声称longitudeDelta的最小值是0.0008583,而不是.003433。有人知道如何在 iPhone 上访问 .0008583 吗?
提前致谢。
After browsing some of the questions here, I have got a rough idea of zoom level and MKMapView. Then I found this great blog:
http://troybrant.net/blog/2010/01/set-the-zoom-level-of-an-mkmapview/
But when I tried out the code from that blog, I felt there seemed to be an upper limit for zoom level. That is to say, no matter how large I set zoomLevel to be, it was always clamped to some thing like 16. The corresponding longitudeDelta of this zoomLevel was 0.003433.
In this question, MKMapView setRegion "snaps" to predefined zoom levels?, pseudopeach claimed that the smallest value for longitudeDelta is .0008583, instead of .003433. Anyone knows how to get to .0008583 on iPhone?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过以下方式在代码中设置 longitudeDelta -
You can set the longitudeDelta in code in following ways-