为什么 MKMapView 中放置在相同纬度和经度的图钉与 Google 地图中的图钉不同?
我在带有经度和纬度的 MKMapView 中放置了一个图钉。当我在谷歌地图上放置相同的经度和纬度时,两者上的图钉略有不同。
I drop a pin in an MKMapView with longitude and latitude. When I place same longitude and latitude on google map the pin on both are slightly different.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有一个网站/iPhone 应用程序渲染来自同一数据库的位置地图,但尚未发现此问题。我会检查您的假设:
从以下屏幕截图中您可以看到,相同的纬度/经度呈现在地图上的相同位置:
更新
我尝试了您在评论中提到的坐标,并得到了相同的位置。你需要检查你的假设。您在网络或设备上使用的值不是您认为的值:
I have a web/iPhone app that renders a map for positions sourced from the same database and haven't seen this issue. I would check your assumptions:
You can see from the following screenshots that the same latitude/longitude are rendered on the same position on the map:
Update
I tried the coordinates you mentioned in the comments and got the same position for both. You need to check your assumptions. The values that you are using on the web or on the device are not the values you think they are: