如何找到谷歌地图的旋转角度 [英] How to find the rotation angle of google map

查看:374
本文介绍了如何找到谷歌地图的旋转角度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用google map的应用程序,并且我陷入了某些功能上.

I am developing an application which uses the google map, and I am stuck in some functionality.

如果用户向任意方向旋转地图,如何查找google地图的旋转角度值?

How to find the value of the rotation angle of google map if user rotated the map in any direction?

推荐答案

GMSMapViewDelegate

轴承,从真正的北沿顺时针方向旋转.

Bearing of the camera, in degrees clockwise from true north.

func mapView(_ mapView: GMSMapView, idleAt position: GMSCameraPosition) {
    print(position.bearing)
}

这篇关于如何找到谷歌地图的旋转角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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