我在使用车辆轨迹回放的时候遇到报错如下
Uncaught TypeError: a.Wa is not a function
at c.moveTo (eval at <anonymous> (maps:3), <anonymous>:481:273)
at c.lda (eval at <anonymous> (maps:3), <anonymous>:484:72)
at c.moveChanged (eval at <anonymous> (maps:3), <anonymous>:481:153)
at c.RC (eval at <anonymous> (maps:3), <anonymous>:56:329)
at c.eval (eval at <anonymous> (maps:3), <anonymous>:55:803)
at c.r (eval at <anonymous> (maps:3), <anonymous>:55:39)
at c.RC (eval at <anonymous> (maps:3), <anonymous>:56:362)
at c.set (eval at <anonymous> (maps:3), <anonymous>:55:459)
at c.moveAlong (eval at <anonymous> (maps:3), <anonymous>:259:189)
at Object.success (openGpsHisPage:4418)
我的代码如下
var marker, lineArr = [];
var path = '<%=request.getContextPath()%>';
var map = new AMap.Map("container", {
resizeEnable: true,
center: [120.620704, 31.256295],
zoom: 17
});
marker = new AMap.Marker({
map: map,
position: [120.620704, 31.256295],
icon: basePath + "/static/image/slc.png",
offset: new AMap.Pixel(-26, -13),
autoRotation: true
});
/* var lngX = 116.397428, latY = 39.90923;
lineArr.push([lngX, latY]);
for (var i = 1; i < 4; i++) {
lngX = lngX + Math.random() * 0.05;
if (i % 2) {
latY = latY + Math.random() * 0.0001;
} else {
latY = latY + Math.random() * 0.06;
}
lineArr.push([lngX, latY]);
} */