| | |
| | | <template> |
| | | <div class="left-top-toolbox-panel" v-if="toolBoxPanelVisible"> |
| | | <div class="left-top-toolbox-panel"> |
| | | <div class="specific-tools"> |
| | | <el-button :class="selectGroup === true ?'active-button':''" class="el-button-choice" |
| | | @mouseover.enter.native="changeSelectMouse"> |
| | |
| | | currentBaseMapCode: 'tianditu_img', |
| | | basemapList: [], |
| | | selectGroup: false, |
| | | toolBoxPanelVisible: false, |
| | | drawLayer: null, |
| | | drawLayerArray: [], |
| | | map: null, |
| | |
| | | if (this.drawLayer == null) { |
| | | this.drawLayer = this.L.layerGroup().addTo(this.map) |
| | | } |
| | | // this.isShow[index] = !this.isShow[index] |
| | | // this.isShow[index - 1] = !this.isShow[index - 1] |
| | | // if (this.checkbutton === index) { |
| | | // this.checked = !this.checked |
| | | // this.Selecd = -1 |
| | | // } else { |
| | | // if (this.checkbutton === -1) { |
| | | // this.checked = !this.checked |
| | | // } else { |
| | | // this.checked = true |
| | | // } |
| | | // } |
| | | // this.checkbutton = index |
| | | // console.log(this.isShow[index - 1]) |
| | | this.active = index |
| | | console.log(this.basemapList) |
| | | for (let i = 0; i < this.isShow.length; i++) { |
| | | if (i !== index) { |
| | | this.isShow[i] = false |
| | | } |
| | | } |
| | | // debugger |
| | | this.isShow[index] = !this.isShow[index] |
| | | this.isShow[index] ? (this.active = index) : (this.active = '') |
| | | }, |