Commit 54b6aae3 authored by 耿迪迪's avatar 耿迪迪

人员定位轨迹查询

parent 8a13e9da
...@@ -156,13 +156,17 @@ ...@@ -156,13 +156,17 @@
}, },
/**清除marker*/ /**清除marker*/
clearMarker(){ clearMarker(){
this.markers.forEach(item =>{ if(this.markers){
this.gaoMap.map.remove(item); this.markers.forEach(item =>{
this.gaoMap.map.remove(item);
}) })
}
}, },
/**清除pipe*/ /**清除pipe*/
clearPipeLine(){ clearPipeLine(){
this.gaoMap.map.remove(this.pipeLine); if(this.pipeLine){
this.gaoMap.map.remove(this.pipeLine);
}
} }
}, },
......
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