小车动画支持调节速率
This commit is contained in:
parent
32f32a1b89
commit
d760aff6c5
@ -187,7 +187,9 @@ function stop(){
|
|||||||
stopAnimation(map,data,view)
|
stopAnimation(map,data,view)
|
||||||
}
|
}
|
||||||
function play(item){
|
function play(item){
|
||||||
|
if(view.animating !== item.value){
|
||||||
stop()
|
stop()
|
||||||
|
}
|
||||||
console.log(item,view.lines,data.polylines)
|
console.log(item,view.lines,data.polylines)
|
||||||
options.showLines = [item.value]
|
options.showLines = [item.value]
|
||||||
changeShowLines()
|
changeShowLines()
|
||||||
@ -461,6 +463,7 @@ function drawMap(autoSelect=false){
|
|||||||
|
|
||||||
function search() {
|
function search() {
|
||||||
console.log(date.value)
|
console.log(date.value)
|
||||||
|
view.animating = -1
|
||||||
let params = {
|
let params = {
|
||||||
startTime: !date.value.from ? undefined : moment(date.value.from).format("YYYY-MM-DD HH:mm:ss"),
|
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"),
|
endTime: !date.value.to ? undefined : moment(date.value.to).format("YYYY-MM-DD HH:mm:ss"),
|
||||||
|
Loading…
Reference in New Issue
Block a user