Commit da5ac2aa authored by xiexingan's avatar xiexingan

提交

parent 3b8d99bf
...@@ -964,7 +964,10 @@ export default { ...@@ -964,7 +964,10 @@ export default {
console.log('选中节点的层级', node) console.log('选中节点的层级', node)
if (node.level === 3) { if (node.level === 3) {
//切换根节点 //切换根节点
this.clearLayer() // this.clearLayer()
this.map.removeLayer(this.vectorLayer)
this.map.removeLayer(this.lineVectorLayer)
this.map.removeInteraction(this.modify)
this.initStation(id) this.initStation(id)
} else if (node.level === 4) { } else if (node.level === 4) {
this.map.removeLayer(this.boxVectorLayer) this.map.removeLayer(this.boxVectorLayer)
......
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