gpt4 book ai didi

ios - 带有设备方向/陀螺仪传感器的 iOS 版谷歌街景

转载 作者:行者123 更新时间:2023-11-29 00:47:21 28 4
gpt4 key购买 nike

有没有一种简单的方法可以让 iOS 中的 Google 街景 View GMSPanormaView 的相机通过来自其运动传感器的数据跟随设备的方向?

如果没有,有没有人已经做过并且可以分享一个从 CoreMotion 获取数据的代码片段,也许可以操纵它来创建 GMSPanoramaCamera,并将它传递给 GMSPanoramaViewanimateToCamera:animationDuration:?

任何相关的 Android 代码也很有用。

最佳答案

检查 Maps SDK for iOS:Internal: Street View ,设备方向/陀螺仪传感器没有内置功能/实现。

根据 Ziem's回答你可以尝试自己实现这个(创建函数)。他还给出了研究以下方面的指示:

引用:

Using a site they have successfully create a function that will let you browse the Google streetview panoramas with your smartphone/tablet like you were inside it, just by moving your phone like a window to the world.

关于ios - 带有设备方向/陀螺仪传感器的 iOS 版谷歌街景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38475523/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com