小车动画支持调节速率

This commit is contained in:
Shikong 2023-05-19 12:14:21 +08:00
parent 32f32a1b89
commit d760aff6c5

View File

@ -187,7 +187,9 @@ function stop(){
stopAnimation(map,data,view)
}
function play(item){
if(view.animating !== item.value){
stop()
}
console.log(item,view.lines,data.polylines)
options.showLines = [item.value]
changeShowLines()
@ -461,6 +463,7 @@ function drawMap(autoSelect=false){
function search() {
console.log(date.value)
view.animating = -1
let params = {
startTime: !date.value.from ? undefined : moment(date.value.from).format("YYYY-MM-DD HH:mm:ss"),
endTime: !date.value.to ? undefined : moment(date.value.to).format("YYYY-MM-DD HH:mm:ss"),