| | |
| | | :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") { |
| | |
| | | new Cesium.Cesium3DTileset({ |
| | | name: res.cnName, |
| | | url: url, //192.168.20.106,to4 |
| | | maximumScreenSpaceError: 64, // 最大屏幕空间错误:16 |
| | | maximumScreenSpaceError: url.indexOf("/pnts/") > -1 ? 16 : 64, // 最大屏幕空间错误:16 |
| | | maximumMemoryUsage: 768, // 最大内存:512 |
| | | dynamicScreenSpaceError: true, // 减少离相机较远的屏幕空间错误:false |
| | | skipLevelOfDetail: true, // 在遍历时候跳过详情:false |
| | |
| | | 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%; |