| | |
| | | <div |
| | | class="edit" |
| | | @click="pellucidity()" |
| | | v-if="showlocal" |
| | | v-if="showopaque" |
| | | > |
| | | <i class="el-icon-tickets"></i> 透明度 |
| | | </div> |
| | |
| | | return { |
| | | shwoHistogram: false, |
| | | showlocal: false, |
| | | showopaque: false, |
| | | eleId: "", |
| | | isShow: false, |
| | | currentData: "", |
| | |
| | | } |
| | | this.currentData = object; |
| | | this.currentNode = Node; |
| | | this.menuVisible = true; |
| | | |
| | | this.$store.state.propertiesName = this.currentData; |
| | | if (this.currentData.serveType == "Tileset" || this.currentData.serveType == "3DML") { |
| | | this.showModelAttach = false; |
| | | this.shwoTitle = false; |
| | | this.menuVisible = true; |
| | | |
| | | if (this.currentData.serveType == 'TMS') { |
| | | this.shwoTitle = true |
| | | } else if (this.currentData.serveType == "Tileset" || this.currentData.serveType == "3DML") { |
| | | this.showModelAttach = true; |
| | | } else { |
| | | this.showModelAttach = false; |
| | | } else if (this.currentData.serveType == "DEM" || this.currentData.serveType == "DOM" || this.currentData.serveType == "MPT") { |
| | | this.menuVisible = false; |
| | | } |
| | | if (this.currentData.enName == "s_explorationpoint") { |
| | | this.shwoHistogram = true; |
| | |
| | | } |
| | | if (Node.data.children == null && Node.data.serveType == "Tileset" || Node.data.serveType == "3DML") { |
| | | this.showlocal = true; |
| | | } else if (Node.data.children == null && Node.data.serveType != "Tileset" || Node.data.serveType == "3DML") { |
| | | this.showopaque = true; |
| | | } else if (Node.data.children == null && Node.data.serveType == "TMS") { |
| | | this.showlocal = true; |
| | | this.showopaque = false; |
| | | } else if (Node.data.children == null && Node.data.serveType != "Tileset") { |
| | | this.showlocal = false; |
| | | } |
| | | |
| | | |
| | | |
| | | if (Node.data.serveType == "DEM") { |
| | | this.firstLevel = true; |
| | | this.menuVisible = false |
| | | |
| | | this.showopaque = false; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | //模型定位 |
| | | positioning() { |
| | | async positioning() { |
| | | this.menuVisible = false |
| | | for (var i in Viewer.scene.primitives._primitives) { |
| | | if ( |
| | | Viewer.scene.primitives._primitives[i].id == this.currentData.cnName |
| | | ) { |
| | | Viewer.flyTo(Viewer.scene.primitives._primitives[i]); |
| | | if (this.currentData.serveType == 'Tileset' || this.currentData.serveType == '3DML') { |
| | | for (var i in Viewer.scene.primitives._primitives) { |
| | | if ( |
| | | Viewer.scene.primitives._primitives[i].id == this.currentData.cnName |
| | | ) { |
| | | Viewer.flyTo(Viewer.scene.primitives._primitives[i]); |
| | | } |
| | | } |
| | | } else if (this.currentData.serveType == 'TMS' && this.currentData.pubid) { |
| | | const data = await comprehensive_selectPubById({ id: this.currentData.pubid }) |
| | | if (data.result.geom) { |
| | | var wkt = this.$wkt.parse(data.result.geom); |
| | | Viewer.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees(wkt.coordinates[1], wkt.coordinates[0], 2000), |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | |
| | | layer.name = res.cnName; |
| | | |
| | | if (data.result.geom) { |
| | | var wkt = this.$wkt.parse(data.result.geom); |
| | | Viewer.camera.flyTo({ |
| | | destination: Cesium.Cartesian3.fromDegrees(wkt.coordinates[1], wkt.coordinates[0], 2000), |
| | | }); |
| | | // var wkt = this.$wkt.parse(data.result.geom); |
| | | // Viewer.camera.flyTo({ |
| | | // destination: Cesium.Cartesian3.fromDegrees(wkt.coordinates[1], wkt.coordinates[0], 2000), |
| | | // }); |
| | | } |
| | | this.setChangeWMS(); |
| | | } |