| | |
| | | if (this.drawLayer == null) { |
| | | this.drawLayer = this.L.layerGroup().addTo(this.map) |
| | | } |
| | | this.active = index |
| | | // this.isShow[index] = !this.isShow[index] |
| | | // this.isShow[index - 1] = !this.isShow[index - 1] |
| | | // if (this.checkbutton === index) { |
| | |
| | | // console.log(this.isShow[index - 1]) |
| | | console.log(this.basemapList) |
| | | for (let i = 0; i < this.isShow.length; i++) { |
| | | this.isShow[i] = false |
| | | if (i !== index) { |
| | | this.isShow[i] = false |
| | | } |
| | | } |
| | | this.isShow[index] = true |
| | | this.isShow[index] = !this.isShow[index] |
| | | this.isShow[index] ? (this.active = index) : (this.active = '') |
| | | }, |
| | | choiceItem (itemT, indexT) { |
| | | this.Selecd = indexT |