|
|
@@ -184,6 +184,7 @@ export default {
|
|
|
handleNodeClick(data) {
|
|
|
this.tipShow = false
|
|
|
this.viewer = window.viewer
|
|
|
+ this.clearWall()
|
|
|
if (!this.viewer) return
|
|
|
if (!data.longitude || !data.latitude) return
|
|
|
const position = [Number(data.longitude), Number(data.latitude)]
|
|
|
@@ -398,11 +399,15 @@ export default {
|
|
|
//清除搜索结果
|
|
|
clearInput() {
|
|
|
this.treeData = this.fatherNodesData
|
|
|
+ },
|
|
|
+ //清除范围显示
|
|
|
+ clearWall() {
|
|
|
+ if (this.viewer.entities.getById('dynamicWall')) this.viewer.entities.removeById('dynamicWall')
|
|
|
}
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
if (this.viewer) {
|
|
|
- if (this.viewer.entities.getById('dynamicWall')) this.viewer.entities.removeById('dynamicWall')
|
|
|
+ this.clearWall()
|
|
|
if (this.prjInfo) this.prjInfo.remove()
|
|
|
}
|
|
|
}
|