| | |
| | | } |
| | | }, |
| | | created () { |
| | | this.map2D.addLayer(this.leftNavBQ) |
| | | this.map2D.addLayer(this.leftNavDL) |
| | | this.map2D.addLayer(this.leftNavSJ) |
| | | this.map2D.addLayer(this.leftNavHD) |
| | | this.map2D.addLayer(this.leftNavTC) |
| | | this.map2D.addLayer(this.leftNavCR) |
| | | }, |
| | | mounted () { |
| | | const that = this |
| | | |
| | | // 初始化新增标签图层 |
| | | that.$EventBus.$on('closeTagLayer', () => { |
| | | this.map2D.addLayer(this.leftNavBQ) |
| | | this.map2D.addLayer(this.leftNavDL) |
| | | this.map2D.addLayer(this.leftNavSJ) |
| | | this.map2D.addLayer(this.leftNavHD) |
| | | this.map2D.addLayer(this.leftNavTC) |
| | | this.map2D.addLayer(this.leftNavCR) |
| | | |
| | | |
| | | that.leftNavData.forEach(item => { |
| | | if (item.layer && item.flag == true) { |
| | |
| | | |
| | | this.leftNavData[0].flag = true |
| | | this.leftNavData[0].img = this.leftNavData[0].checked |
| | | this.leftNavData[5].flag = true |
| | | this.leftNavData[5].img = this.leftNavData[5].checked |
| | | this.leftNavData[4].flag = true |
| | | this.leftNavData[4].img = this.leftNavData[4].checked |
| | | |
| | | this.leftNavBQ.setVisible(true) |
| | | this.leftNavCR.setVisible(true) |