小车动画支持调节速率

This commit is contained in:
Shikong 2023-05-19 12:10:58 +08:00
parent 5b60c22a9d
commit 32f32a1b89

View File

@ -37,7 +37,6 @@ export function playAnimation(map,data,line,animateRate,view,itemIndex){
index++ index++
} }
lastMovingIndex = e.index lastMovingIndex = e.index
console.log("index",index,path.length,line.length)
let lastLocation = e.passedPath[e.passedPath.length - 1]; let lastLocation = e.passedPath[e.passedPath.length - 1];
data.infoWindow.setPosition(lastLocation); data.infoWindow.setPosition(lastLocation);
let speed = ((line[index].speed||0) * 3.6).toFixed(2) let speed = ((line[index].speed||0) * 3.6).toFixed(2)