Commit d998640f authored by 纪泽龙's avatar 纪泽龙

修改map轨迹回放

parent 3841a94d
/*
* @Author: your name
* @Date: 2022-01-11 13:45:12
* @LastEditTime: 2022-03-20 10:39:52
* @LastEditTime: 2022-03-20 10:41:52
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
......@@ -714,16 +714,6 @@ export class EditorMap {
});
}
......@@ -733,16 +723,15 @@ export class EditorMap {
// )[0];
this.allDevice["9"]?.forEach(item=>{
if (item) {
// 停止运动
item.stopMove();
if(item.polyline){
console.log("A")
this.map.remove(item.polyline);
}
console.log("B",item.passedPolyline)
if(item.passedPolyline){
this.map.remove(item.passedPolyline);
}
// this.map.remove(item);
this.map.remove(item);
}
})
this.infowindowClose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment