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会转一圈再走轨迹,这个问题希望官方大大解答下
0 个回复