| | |
| | | :data="treeData" |
| | | show-checkbox |
| | | node-key="id" |
| | | default-expand-all |
| | | :props="defaultProps" |
| | | ref="tree" |
| | | class="el-tree" |
| | |
| | | std.push(3); |
| | | this.$refs.tree.setCheckedKeys(std) |
| | | } |
| | | this.getWMSLayer(); |
| | | |
| | | }, |
| | | async addImageLayer() { |
| | |
| | | return str; |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | this.$refs.tree.setCheckedKeys(checkKey) |
| | | var res = this.setTreeData(val); |
| | | |
| | | this.treeData = res |
| | | |
| | | |
| | | this.setShowImageLayer(value) |
| | | }, |
| | | setTreeData(source) { |
| | |
| | | // } |
| | | |
| | | |
| | | |
| | | if (data.type == 1) { |
| | | this.childOption = []; |
| | | this.getchilds(data); |
| | |
| | | |
| | | } |
| | | } |
| | | this.setShowWMSLayer(listWMS); |
| | | this.getWMSLayer(); |
| | | this.setShowTilesetLayer(listTileset); |
| | | this.setShowMptLayer(listMpt); |
| | | this.setShowTMSLayer(listTMS); |
| | | } else if (data.type == 2) { |
| | | if (data.serveType == "WMS") { |
| | | this.setShowWMSLayer([data]); |
| | | this.getWMSLayer(); |
| | | } else if (data.serveType == "Tileset") { |
| | | this.setShowTilesetLayer([data]); |
| | | } else if (data.serveType == "Mpt") { |
| | |
| | | setShowWMSLayer(res) { |
| | | var url = []; |
| | | this.setClearWmsLayer(); |
| | | |
| | | for (var i in res) { |
| | | if (res[i].url) { |
| | | url.push(res[i].url) |
| | |
| | | margin: 10px; |
| | | height: 85%; |
| | | overflow-y: auto; |
| | | /deep/ .tree-label { |
| | | color: #eee !important; |
| | | } |
| | | /deep/ .el-tree { |
| | | color: #eee !important; |
| | | } |
| | | } |
| | | .changeBaseLayer { |
| | | width: 100%; |