| | |
| | | import { transform } from 'ol/proj'; |
| | | import mapinfo from '../Tools/mapinfo.vue'; |
| | | import maplayer from '../Tools/maplayer.vue'; |
| | | import queryinfo from '../Tools/queryinfo.vue' |
| | | import queryinfo from '../Tools/queryinfo.vue'; |
| | | import { |
| | | OverviewMap, |
| | | defaults as defaultControls, |
| | | FullScreen, |
| | | ScaleLine, |
| | | Rotate, |
| | | } from "ol/control.js" |
| | | export default { |
| | | components: { mapinfo, maplayer, queryinfo }, |
| | | data() { |
| | |
| | | showTwoMenuFlag: false, |
| | | setListTwoMenu: [], |
| | | setListTwoMenuAll: [ |
| | | [ |
| | | [ |
| | | { |
| | | id: 'a1', |
| | | label: 'synthesis.layer', |
| | |
| | | name: '地形开挖', |
| | | css: 'twoMenu_imge411', |
| | | }, |
| | | { |
| | | { |
| | | id: "d12", |
| | | label: "synthesis.visibilityAnalysis", |
| | | name: "通视分析", |
| | |
| | | name: '导出', |
| | | css: 'twoMenu_imge86', |
| | | }, |
| | | { |
| | | id: 'h8', |
| | | label: 'synthesis.addlabel', |
| | | name: '文字', |
| | | css: 'twoMenu_imge88', |
| | | }, |
| | | { |
| | | id: 'h8', |
| | | label: 'synthesis.addlabel', |
| | | name: '文字', |
| | | css: 'twoMenu_imge88', |
| | | }, |
| | | { |
| | | id: 'h7', |
| | | label: 'synthesis.removepaint', |
| | |
| | | isolineFlag: false, |
| | | isslopeFlag: false, |
| | | isContrastFlag: false, |
| | | UndergroundMode: false |
| | | UndergroundMode: false, |
| | | scaleLine: null, |
| | | Excavation:false, |
| | | }; |
| | | }, |
| | | methods: { |
| | | //二級菜单点击切换 |
| | | setChangeTwoMenu(res) { |
| | | //清除绘制图形对象 |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | if (window.Viewer.scene.primitives.length != null) { |
| | | window.Viewer.scene.primitives.removeAll(); |
| | | } |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | |
| | | //关闭打开的信息窗体 |
| | | |
| | | |
| | | |
| | | //清除绘制图形对象 |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | if (window.Viewer.scene.primitives.length != null) { |
| | | window.Viewer.scene.primitives.removeAll(); |
| | | } |
| | | if (this.$store.state.primitLayer != null) { |
| | | sgworld.Creator.DeleteObject(this.$store.state.primitLayer); |
| | | this.$store.state.primitLayer = null; |
| | | } |
| | | |
| | | //关闭打开的信息窗体 |
| | | |
| | | |
| | | |
| | | this.showTwoMenuFlag = res.id; |
| | | this.$store.state.mapMenuBoolean = false; |
| | | this.$store.state.mapMenuBoxFlag = null; |
| | |
| | | window.model.deleteObject(); |
| | | window.model = null; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | switch (val) { |
| | | case 'a': //图层管理 |
| | | this.setCoverage(res.id); |
| | |
| | | case 'h7': |
| | | sgworld.Creator.SimpleGraphic.clear(); |
| | | break; |
| | | case 'h8': |
| | | sgworld.Creator.createSimpleGraphic('label', {}, function (entity) { |
| | | |
| | | }); |
| | | break; |
| | | case 'h8': |
| | | sgworld.Creator.createSimpleGraphic('label', {}, function (entity) { |
| | | |
| | | }); |
| | | break; |
| | | } |
| | | }, |
| | | handleSaveClick() { |
| | |
| | | alert('当前场景没有entities实体'); |
| | | } |
| | | }, |
| | | |
| | | |
| | | handleOpenClick() { |
| | | sgworld.Creator.SimpleGraphic.edit(true, { editProp: true }); |
| | | let fileInput = document.querySelector('.file'); |
| | |
| | | } |
| | | ); |
| | | break; |
| | | case "j7": |
| | | case "j7": |
| | | var measure = window.sgworld.Command.execute( |
| | | 1, |
| | | 11, |
| | |
| | | } |
| | | }, |
| | | setAnalsy(res) { |
| | | //this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); |
| | | //this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); |
| | | var that = this; |
| | | switch (res) { |
| | | case 'd1': |
| | |
| | | ); |
| | | break; |
| | | case 'd9': |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.close("queryinfo"); |
| | | this.$store.state.mapPopBoxFlag = '3'; |
| | | |
| | | |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.open("管道空间分析", null, { |
| | | close: () => { |
| | | if (this.$store.state.pipelineEntity.length != 0) { |
| | |
| | | } |
| | | break; |
| | | |
| | | case "d12": |
| | | case "d12": |
| | | if (window.Excavation) { |
| | | window.Excavation.deleteObject() |
| | | window.Excavation = null |
| | |
| | | } |
| | | break |
| | | case "d13": |
| | | if (window.Excavation) { |
| | | window.Excavation.destroy() |
| | | window.Excavation = null |
| | | if (this.Excavation ) { |
| | | this.Excavation.destroy() |
| | | this.Excavation = null |
| | | } else { |
| | | window.Excavation = sgworld.Analysis.create3DViewshedPoss({ |
| | | this.Excavation = sgworld.Analysis.create3DViewshedPoss({ |
| | | height: 1.8, |
| | | }) |
| | | } |
| | |
| | | case 'b7': //比例尺 |
| | | this.isRuler = !this.isRuler; |
| | | window.sgworld.navControl('scale', this.isRuler); |
| | | if (this.isRuler == true) { |
| | | this.scaleLine = new ScaleLine({ |
| | | units: "metric" |
| | | }); |
| | | window.map.addControl(this.scaleLine); |
| | | } else { |
| | | |
| | | window.map.removeControl(this.scaleLine); |
| | | this.scaleLine = false; |
| | | } |
| | | break; |
| | | case 'b8': //指北针 |
| | | this.isNaviget = !this.isNaviget; |
| | | window.sgworld.navControl('nav', this.isNaviget); |
| | | this.$store.state.isNaviget = this.isNaviget |
| | | break; |
| | | case 'b9': //地下模式 |
| | | this.UndergroundMode = !this.UndergroundMode; |
| | |
| | | .menu_Box { |
| | | width: 100%; |
| | | height: 100%; |
| | | background: #303030; |
| | | color: white; |
| | | margin: 0; |
| | | padding: 0; |
| | | overflow-y: auto; |
| | |
| | | border: 1px solid #409eff; |
| | | } |
| | | .menuTwoImage { |
| | | width: 32px; |
| | | height: 32px; |
| | | width: 40px; |
| | | height: 40px; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .twoMenu_imge11 { |
| | | background: url("../../assets/img/synthesis/图层 32.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge12 { |
| | | background: url("../../assets/img/synthesis/图层 35.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge13 { |
| | | background: url("../../assets/img/synthesis/发布.png") no-repeat center; |
| | | } |
| | | //视图 |
| | | .twoMenu_imge21 { |
| | | background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 3.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge22 { |
| | | background: url("../../assets/img/synthesis/图层 10 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge23 { |
| | | background: url("../../assets/img/synthesis/图层 11 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge24 { |
| | | background: url("../../assets/img/synthesis/图层 12 拷贝 2.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge25 { |
| | | background: url("../../assets/img/synthesis/圆角矩形 5 拷贝 2.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge26 { |
| | | background: url("../../assets/img/synthesis/圆角矩形 5 拷贝 3.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge27 { |
| | | background: url("../../assets/img/synthesis/矩形 9.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge28 { |
| | | background: url("../../assets/img/synthesis/椭圆 4.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge29 { |
| | | background: url("../../assets/img/synthesis/z_03.png") no-repeat center; |
| | | } |
| | | //漫游 |
| | | .twoMenu_imge31 { |
| | | background: url("../../assets/img/synthesis/椭圆 6.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge32 { |
| | | background: url("../../assets/img/synthesis/椭圆 7 拷贝 2.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge33 { |
| | | background: url("../../assets/img/synthesis/图层 14 副本 拷贝.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge34 { |
| | | background: url("../../assets/img/synthesis/图层 74 拷贝 2.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge35 { |
| | | background: url("../../assets/img/synthesis/椭圆 7 拷贝 4.png") no-repeat |
| | | center; |
| | | } |
| | | //分析 |
| | | .twoMenu_imge41 { |
| | | background: url("../../assets/img/synthesis/椭圆 8 拷贝 8.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge42 { |
| | | background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 5.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge43 { |
| | | background: url("../../assets/img/synthesis/圆角矩形 10 副本 3.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge44 { |
| | | background: url("../../assets/img/synthesis/图层 74 拷贝 3.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge45 { |
| | | background: url("../../assets/img/synthesis/图层 20.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge46 { |
| | | background: url("../../assets/img/synthesis/图层 14 拷贝 3.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge47 { |
| | | background: url("../../assets/img/synthesis/图层 18.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge48 { |
| | | background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 6.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge49 { |
| | | background: url("../../assets/img/synthesis/管道.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge410 { |
| | | background: url("../../assets/img/synthesis/dxkw.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge411 { |
| | | background: url("../../assets/img/synthesis/矩形 14 拷贝 7.png") no-repeat |
| | | center; |
| | | } |
| | | // 通视分析、视域分析 预留 |
| | | .twoMenu_imge412 { |
| | | background: url("../../assets/img/synthesis/矩形 14 拷贝 7.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge413 { |
| | | background: url("../../assets/img/synthesis/矩形 14 拷贝 7.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge414 { |
| | | background: url("../../assets/img/synthesis/矩形 14 拷贝 7.png") no-repeat |
| | | center; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //查询 |
| | | .twoMenu_imge51 { |
| | | background: url("../../assets/img/synthesis/图层 23.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge52 { |
| | | background: url("../../assets/img/synthesis/空间查询.png") no-repeat center; |
| | | } |
| | | //定位 |
| | | .twoMenu_imge61 { |
| | | background: url("../../assets/img/synthesis/图层 27.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge62 { |
| | | background: url("../../assets/img/synthesis/图层 28.png") no-repeat center; |
| | | } |
| | | //测量 |
| | | .twoMenu_imge71 { |
| | | background: url("../../assets/img/synthesis/图层 31.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge72 { |
| | | background: url("../../assets/img/synthesis/图层 31 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge73 { |
| | | background: url("../../assets/img/synthesis/矩形 13 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge74 { |
| | | background: url("../../assets/img/synthesis/图层 18 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge75 { |
| | | background: url("../../assets/img/synthesis/M 拷贝.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge76 { |
| | | background: url("../../assets/img/synthesis/空间测距.png") no-repeat center; |
| | | } |
| | | |
| | | // 高层量测图标 |
| | | .twoMenu_imge77 { |
| | | background: url("../../assets/img/synthesis/图层 31 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | |
| | | |
| | | |
| | | //标绘 |
| | | .twoMenu_imge81 { |
| | | background: url("../../assets/img/synthesis/椭圆 5 拷贝 3.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge82 { |
| | | background: url("../../assets/img/synthesis/椭圆 3 拷贝 16.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge83 { |
| | | background: url("../../assets/img/synthesis/椭圆 3 拷贝 20.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge84 { |
| | | background: url("../../assets/img/synthesis/椭圆 3 拷贝 23.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge85 { |
| | | background: url("../../assets/img/synthesis/导入.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge86 { |
| | | background: url("../../assets/img/synthesis/导出.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge87 { |
| | | background: url("../../assets/img/synthesis/清除.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge88 { |
| | | background: url("../../assets/img/synthesis/图层 32.png") no-repeat center; |
| | | } |
| | | |
| | | } |
| | | </style> |