consoleLog123
consoleLog123
  • 发布:2021-10-27 08:40
  • 更新:2021-10-27 08:40
  • 阅读:777

uniapp 安卓Nvue 使用高德地图 设置转向角的时候 转向角为markers逆时针旋转的角度

分类:nvue
map
this.covers = [{  
                        id: 1,  
                        width: 47,  
                        height: 72,  
                        rotate: 360-Number(this.coordinate[0].dir),  
                        latitude: this.coordinate[0].latitude,  
                        longitude: this.coordinate[0].longitude,  
                        iconPath: '/static/imgs/track_car.png'  
                    },  
                    {  
                        id: 2,  
                        width: 48,  
                        height: 48,  
                        latitude: this.coordinate[0].latitude,  
                        longitude: this.coordinate[0].longitude,  
                        iconPath: '/static/imgs/start.png'  
                    },  
                    {  
                        id: 3,  
                        width: 48,  
                        height: 48,  
                        latitude: this.coordinate[this.coordinate.length - 1].latitude,  
                        longitude: this.coordinate[this.coordinate.length - 1].longitude,  
                        iconPath: '/static/imgs/end.png'  
                    }  
                ]

后端给的是顺时针角度,安卓nvue上设置rotate之后为逆时针旋转,小程序上没问题,就APP端用360度减,但是在走translateMarker 方法的时候 直接设置rotate 又回到了顺时针旋转正常,这样会导致轨迹点回放的时候,到第二个点上markers会转一圈再走轨迹,这个问题希望官方大大解答下

2021-10-27 08:40 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复