| | |
| | | }, |
| | | // 鼠标右击事件 |
| | | rightClick (event, object, node, element) { |
| | | debugger |
| | | if (object.type == 1 || node.data.children != null) return; |
| | | |
| | | this.currentNode = node; |
| | |
| | | return; |
| | | } |
| | | |
| | | if (["TMS", "DOM", "DEM"].indexOf(this.currentData.serveType) > -1 && this.currentData.pubid) { |
| | | if (["TMS", "DEM"].indexOf(this.currentData.serveType) > -1 && this.currentData.pubid) { |
| | | var data = await comprehensive_selectPubById({ id: this.currentData.pubid }); |
| | | if (data.result && data.result.geom) { |
| | | var wkt = this.$wkt.parse(data.result.geom); |
| | |
| | | // 透明度 |
| | | pellucidity () { |
| | | this.rmListener(); |
| | | this.menuVisible = false |
| | | var tile = this.currentData |
| | | for (var j in Viewer.scene.primitives._primitives) { |
| | | if (Viewer.scene.primitives._primitives[j].id == tile.cnName) { |
| | | if (Viewer.scene.primitives._primitives[j].id == this.currentData.cnName) { |
| | | this.$store.state.setAlphaDity = this.currentData; |
| | | this.$bus.$emit("showPellucidity", true); |
| | | break; |