| | |
| | | v-for="(item, index) in setListTwoMenu" |
| | | :class="{ lefMenuDivActive: showTwoMenuFlag == item.id }" |
| | | > |
| | | <div class="menuTwoImage" :class="item.css"></div> |
| | | <div |
| | | class="menuTwoImage" |
| | | :class="item.css" |
| | | ></div> |
| | | <div>{{ $t(item.label) }}</div> |
| | | </div> |
| | | <mapinfo ref="mapinfo" /> |
| | | <maplayer ref="maplayer" /> |
| | | <input type="file" accept=".kml" class="file" style="display: none" /> |
| | | <queryinfo ref="queryinfo" /> |
| | | <input |
| | | type="file" |
| | | accept=".kml" |
| | | class="file" |
| | | style="display: none" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { transform } from 'ol/proj'; |
| | | import mapinfo from '../Tools/mapinfo.vue'; |
| | | import maplayer from '../Tools/maplayer.vue'; |
| | | |
| | | import queryinfo from '../Tools/queryinfo.vue' |
| | | export default { |
| | | components: { mapinfo, maplayer }, |
| | | components: { mapinfo, maplayer, queryinfo }, |
| | | data() { |
| | | return { |
| | | showTwoMenuFlag: false, |
| | |
| | | name: '图层管理', |
| | | css: 'twoMenu_imge11', |
| | | }, |
| | | { |
| | | id: 'a2', |
| | | name: '场景提取', |
| | | label: 'synthesis.sceneExtraction', |
| | | css: 'twoMenu_imge12', |
| | | }, |
| | | { |
| | | id: 'a3', |
| | | label: 'synthesis.release', |
| | | name: '场景发布', |
| | | css: 'twoMenu_imge13', |
| | | }, |
| | | |
| | | ], |
| | | [ |
| | | { |
| | |
| | | name: '指北针', |
| | | css: 'twoMenu_imge28', |
| | | }, |
| | | { |
| | | id: 'b9', |
| | | label: 'synthesis.undergroundMode', |
| | | name: '地下模式', |
| | | css: 'twoMenu_imge29', |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | |
| | | name: '地图快照', |
| | | css: 'twoMenu_imge34', |
| | | }, |
| | | { |
| | | id: 'c5', |
| | | label: 'synthesis.tdisplay', |
| | | name: '三维演示', |
| | | css: 'twoMenu_imge35', |
| | | }, |
| | | |
| | | ], |
| | | [ |
| | | { |
| | |
| | | name: '清除', |
| | | css: 'twoMenu_imge87', |
| | | }, |
| | | ], |
| | | ], [ |
| | | { |
| | | id: 'i1', |
| | | name: '场景提取', |
| | | label: 'synthesis.sceneExtraction', |
| | | css: 'twoMenu_imge12', |
| | | }, |
| | | { |
| | | id: 'i2', |
| | | label: 'synthesis.release', |
| | | name: '场景发布', |
| | | css: 'twoMenu_imge13', |
| | | }, { |
| | | id: 'i3', |
| | | label: 'synthesis.tdisplay', |
| | | name: '三维演示', |
| | | css: 'twoMenu_imge35', |
| | | }, |
| | | ] |
| | | ], |
| | | isRuler: false, |
| | | isNaviget: false, |
| | | isolineFlag: false, |
| | | isslopeFlag: false, |
| | | isContrastFlag: false, |
| | | UndergroundMode: false |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | sgworld.Creator.SimpleGraphic.edit(true, { editProp: true }); |
| | | this.setPlot(res.id); |
| | | break; |
| | | |
| | | } |
| | | }, |
| | | setPlot(res) { |
| | |
| | | sgworld.Creator.createSimpleGraphic( |
| | | 'point', |
| | | {}, |
| | | function (entity) {} |
| | | function (entity) { } |
| | | ); |
| | | break; |
| | | case 'h2': |
| | | sgworld.Creator.createSimpleGraphic( |
| | | 'polyline', |
| | | {}, |
| | | function (entity) {} |
| | | function (entity) { } |
| | | ); |
| | | break; |
| | | case 'h3': |
| | | sgworld.Creator.createSimpleGraphic( |
| | | 'rectangle', |
| | | {}, |
| | | function (entity) {} |
| | | function (entity) { } |
| | | ); |
| | | break; |
| | | case 'h4': |
| | | sgworld.Creator.createSimpleGraphic( |
| | | 'polygon', |
| | | {}, |
| | | function (entity) {} |
| | | function (entity) { } |
| | | ); |
| | | break; |
| | | case 'h5': |
| | |
| | | }; |
| | | fileInput.click(); |
| | | }, |
| | | setLayerScene() { |
| | | |
| | | var URL = window.location.href.split("#"); |
| | | this.openwindow({ url: URL[0] + 'LfSKyline/index.html' }); |
| | | }, |
| | | |
| | | openwindow(data) { |
| | | var url = data.url; //转向网页的地址; |
| | | var name = data.title || '选择要添加的页面'; //网页名称,可为空; |
| | | var iWidth = window.screen.width; //弹出窗口的宽度; |
| | | var iHeight = window.screen.height; //弹出窗口的高度; |
| | | var iTop = 0 //获得窗口的垂直位置; |
| | | var iLeft = 0; //获得窗口的水平位置; |
| | | window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no'); |
| | | }, |
| | | |
| | | |
| | | |
| | | setMeasurement(res) { |
| | | switch (res) { |
| | | case 'j1': |
| | |
| | | 'auto', |
| | | (data) => { |
| | | if (volumetricMeasurementTool.popupData) { |
| | | volumetricMeasurementTool.popupData.value = `填方:${ |
| | | data.volume.fill.toFixed(4) + data.unit.fill |
| | | }<br>挖方:${data.volume.dig.toFixed(4) + data.unit.dig}`; |
| | | volumetricMeasurementTool.popupData.value = `填方:${data.volume.fill.toFixed(4) + data.unit.fill |
| | | }<br>挖方:${data.volume.dig.toFixed(4) + data.unit.dig}`; |
| | | } else { |
| | | data.id = window.sgworld.Core.getuid(); |
| | | this.measureData.set(data.id, volumetricMeasurementTool); |
| | |
| | | }); |
| | | break; |
| | | case '体积方量': |
| | | info = `填方:${ |
| | | data.volume.fill.toFixed(4) + data.unit.fill |
| | | }<br>挖方:${data.volume.dig.toFixed(4) + data.unit.dig}`; |
| | | info = `填方:${data.volume.fill.toFixed(4) + data.unit.fill |
| | | }<br>挖方:${data.volume.dig.toFixed(4) + data.unit.dig}`; |
| | | break; |
| | | } |
| | | return ( |
| | |
| | | 'auto', |
| | | (data) => { |
| | | if (volumetricMeasurementTool.popupData) { |
| | | volumetricMeasurementTool.popupData.value = `填方:${ |
| | | data.volume.fill.toFixed(4) + data.unit.fill |
| | | }<br>挖方:${data.volume.dig.toFixed(4) + data.unit.dig}`; |
| | | volumetricMeasurementTool.popupData.value = `填方:${data.volume.fill.toFixed(4) + data.unit.fill |
| | | }<br>挖方:${data.volume.dig.toFixed(4) + data.unit.dig}`; |
| | | } else { |
| | | data.id = sgworld.Core.getuid(); |
| | | this.measureData.set(data.id, volumetricMeasurementTool); |
| | |
| | | that.setclippingModel(); |
| | | } |
| | | ); |
| | | break; |
| | | case 'd9': |
| | | this.$store.state.mapPopBoxFlag = '3'; |
| | | this.$refs && this.$refs.queryinfo && this.$refs.queryinfo.open("管道空间分析", null, { |
| | | close: () => { |
| | | if (this.$store.state.pipelineEntity.length != 0) { |
| | | for (var i in this.$store.state.pipelineEntity) { |
| | | var item = this.$store.state.pipelineEntity[i] |
| | | sgworld.Viewer.entities.remove(item); |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | break; |
| | | case 'd8': |
| | | if (this.isContrastFlag == false) { |
| | |
| | | ); |
| | | } |
| | | break; |
| | | |
| | | case 'd11': |
| | | if (window.Excavation) { |
| | | window.Excavation.clear(); |
| | |
| | | window.Excavation = sgworld.Analysis.TerrainExcavation( |
| | | 10, |
| | | {}, |
| | | function () {} |
| | | function () { } |
| | | ); |
| | | } |
| | | break; |
| | |
| | | 2, |
| | | 2, |
| | | method, |
| | | (value) => {} |
| | | (value) => { } |
| | | ); |
| | | }, |
| | | |
| | | addterrainSectionAnalysis() { |
| | | window.AnalysisDXPM = sgworld.Command.execute( |
| | | 2, |
| | |
| | | { cyjj: 50, objid: 0 }, |
| | | (Distance) => { |
| | | if (Distance.gcs && Distance.gcs.length) { |
| | | var url = window.location.href; |
| | | var testurl = ''; |
| | | if (url.indexOf('web') != -1) { |
| | | testurl = '/web'; |
| | | } |
| | | window.AnalysisDXPM.analyseData = Distance; |
| | | this.dxpmIndex = layer.open({ |
| | | type: 2, |
| | |
| | | area: ['80%', '280px'], |
| | | offset: 'b', |
| | | skin: 'other-class', |
| | | content: '/SmartEarthSDK/Workers/analysis/AnalysisDXPM.html', |
| | | content: testurl + '/SmartEarthSDK/Workers/analysis/AnalysisDXPM.html', |
| | | end: () => { |
| | | this.dxpmIndex && this.clear('d4'); |
| | | }, |
| | |
| | | this.isNaviget = !this.isNaviget; |
| | | window.sgworld.navControl('nav', this.isNaviget); |
| | | break; |
| | | case 'b9': //地下模式 |
| | | this.UndergroundMode = !this.UndergroundMode; |
| | | window.sgworld.Analysis.UndergroundMode(this.UndergroundMode, 0.3) |
| | | break; |
| | | } |
| | | }, |
| | | setCoverage(res) { |
| | | switch (res) { |
| | | case 'a1': |
| | | this.$refs && this.$refs.maplayer && this.$refs.maplayer.open(); |
| | | if (this.$store.state.layerMnage == false) { |
| | | this.$refs && this.$refs.maplayer && this.$refs.maplayer.open(); |
| | | this.$store.state.layerMnage = true; |
| | | } else if (this.$store.state.layerMnage == true) { |
| | | this.$refs && this.$refs.maplayer && this.$refs.maplayer.close(); |
| | | this.$store.state.layerMnage = false; |
| | | } |
| | | |
| | | break; |
| | | } |
| | | }, |
| | |
| | | polygon: Cesium.Color.fromCssColorString('#ffff00').withAlpha(0.6), |
| | | }; |
| | | this.$bus.$on('setChangeTwoMenu', (res) => { |
| | | this.menuChange(res); |
| | | |
| | | if (res == 8) { this.setLayerScene(); } else { |
| | | this.menuChange(res); |
| | | } |
| | | |
| | | }); |
| | | this.$bus.$on('showLeftMenu', (res) => { |
| | | this.$store.state.showAllLayers = true; |
| | | |
| | | this.setCoverage('a1'); |
| | | // this.$bus.$emit('setAllLayers', true); |
| | | |
| | | }); |
| | | }, |
| | | }; |
| | |
| | | } |
| | | |
| | | .twoMenu_imge11 { |
| | | background: url('../../assets/img/synthesis/图层 32.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/图层 32.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge12 { |
| | | background: url('../../assets/img/synthesis/图层 35.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/图层 35.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge13 { |
| | | background: url('../../assets/img/synthesis/发布.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/发布.png") no-repeat center; |
| | | } |
| | | //视图 |
| | | .twoMenu_imge21 { |
| | | background: url('../../assets/img/synthesis/圆角矩形 12 拷贝 3.png') |
| | | background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 3.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge22 { |
| | | background: url('../../assets/img/synthesis/图层 10 拷贝.png') no-repeat |
| | | background: url("../../assets/img/synthesis/图层 10 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge23 { |
| | | background: url('../../assets/img/synthesis/图层 11 拷贝.png') no-repeat |
| | | background: url("../../assets/img/synthesis/图层 11 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge24 { |
| | | background: url('../../assets/img/synthesis/图层 12 拷贝 2.png') no-repeat |
| | | background: url("../../assets/img/synthesis/图层 12 拷贝 2.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge25 { |
| | | background: url('../../assets/img/synthesis/圆角矩形 5 拷贝 2.png') |
| | | background: url("../../assets/img/synthesis/圆角矩形 5 拷贝 2.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge26 { |
| | | background: url('../../assets/img/synthesis/圆角矩形 5 拷贝 3.png') |
| | | background: url("../../assets/img/synthesis/圆角矩形 5 拷贝 3.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge27 { |
| | | background: url('../../assets/img/synthesis/矩形 9.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/矩形 9.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge28 { |
| | | background: url('../../assets/img/synthesis/椭圆 4.png') no-repeat center; |
| | | 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; |
| | | background: url("../../assets/img/synthesis/椭圆 6.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge32 { |
| | | background: url('../../assets/img/synthesis/椭圆 7 拷贝 2.png') no-repeat |
| | | background: url("../../assets/img/synthesis/椭圆 7 拷贝 2.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge33 { |
| | | background: url('../../assets/img/synthesis/图层 14 副本 拷贝.png') |
| | | background: url("../../assets/img/synthesis/图层 14 副本 拷贝.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge34 { |
| | | background: url('../../assets/img/synthesis/图层 74 拷贝 2.png') no-repeat |
| | | background: url("../../assets/img/synthesis/图层 74 拷贝 2.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge35 { |
| | | background: url('../../assets/img/synthesis/椭圆 7 拷贝 4.png') no-repeat |
| | | background: url("../../assets/img/synthesis/椭圆 7 拷贝 4.png") no-repeat |
| | | center; |
| | | } |
| | | //分析 |
| | | .twoMenu_imge41 { |
| | | background: url('../../assets/img/synthesis/椭圆 8 拷贝 8.png') no-repeat |
| | | background: url("../../assets/img/synthesis/椭圆 8 拷贝 8.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge42 { |
| | | background: url('../../assets/img/synthesis/圆角矩形 12 拷贝 5.png') |
| | | background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 5.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge43 { |
| | | background: url('../../assets/img/synthesis/圆角矩形 10 副本 3.png') |
| | | background: url("../../assets/img/synthesis/圆角矩形 10 副本 3.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge44 { |
| | | background: url('../../assets/img/synthesis/图层 74 拷贝 3.png') no-repeat |
| | | background: url("../../assets/img/synthesis/图层 74 拷贝 3.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge45 { |
| | | background: url('../../assets/img/synthesis/图层 20.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/图层 20.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge46 { |
| | | background: url('../../assets/img/synthesis/图层 14 拷贝 3.png') no-repeat |
| | | background: url("../../assets/img/synthesis/图层 14 拷贝 3.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge47 { |
| | | background: url('../../assets/img/synthesis/图层 18.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/图层 18.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge48 { |
| | | background: url('../../assets/img/synthesis/圆角矩形 12 拷贝 6.png') |
| | | background: url("../../assets/img/synthesis/圆角矩形 12 拷贝 6.png") |
| | | no-repeat center; |
| | | } |
| | | .twoMenu_imge49 { |
| | | background: url('../../assets/img/synthesis/管道.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/管道.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge410 { |
| | | background: url('../../assets/img/synthesis/dxkw.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/dxkw.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge411 { |
| | | background: url('../../assets/img/synthesis/矩形 14 拷贝 7.png') no-repeat |
| | | background: url("../../assets/img/synthesis/矩形 14 拷贝 7.png") no-repeat |
| | | center; |
| | | } |
| | | //查询 |
| | | .twoMenu_imge51 { |
| | | background: url('../../assets/img/synthesis/图层 23.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/图层 23.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge52 { |
| | | background: url('../../assets/img/synthesis/空间查询.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/空间查询.png") no-repeat center; |
| | | } |
| | | //定位 |
| | | .twoMenu_imge61 { |
| | | background: url('../../assets/img/synthesis/图层 27.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/图层 27.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge62 { |
| | | background: url('../../assets/img/synthesis/图层 28.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/图层 28.png") no-repeat center; |
| | | } |
| | | //测量 |
| | | .twoMenu_imge71 { |
| | | background: url('../../assets/img/synthesis/图层 31.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/图层 31.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge72 { |
| | | background: url('../../assets/img/synthesis/图层 31 拷贝.png') no-repeat |
| | | background: url("../../assets/img/synthesis/图层 31 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge73 { |
| | | background: url('../../assets/img/synthesis/矩形 13 拷贝.png') no-repeat |
| | | background: url("../../assets/img/synthesis/矩形 13 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge74 { |
| | | background: url('../../assets/img/synthesis/图层 18 拷贝.png') no-repeat |
| | | background: url("../../assets/img/synthesis/图层 18 拷贝.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge75 { |
| | | background: url('../../assets/img/synthesis/M 拷贝.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/M 拷贝.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge76 { |
| | | background: url('../../assets/img/synthesis/空间测距.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/空间测距.png") no-repeat center; |
| | | } |
| | | //标绘 |
| | | .twoMenu_imge81 { |
| | | background: url('../../assets/img/synthesis/椭圆 5 拷贝 3.png') no-repeat |
| | | background: url("../../assets/img/synthesis/椭圆 5 拷贝 3.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge82 { |
| | | background: url('../../assets/img/synthesis/椭圆 3 拷贝 16.png') no-repeat |
| | | background: url("../../assets/img/synthesis/椭圆 3 拷贝 16.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge83 { |
| | | background: url('../../assets/img/synthesis/椭圆 3 拷贝 20.png') no-repeat |
| | | background: url("../../assets/img/synthesis/椭圆 3 拷贝 20.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge84 { |
| | | background: url('../../assets/img/synthesis/椭圆 3 拷贝 23.png') no-repeat |
| | | background: url("../../assets/img/synthesis/椭圆 3 拷贝 23.png") no-repeat |
| | | center; |
| | | } |
| | | .twoMenu_imge85 { |
| | | background: url('../../assets/img/synthesis/导入.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/导入.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge86 { |
| | | background: url('../../assets/img/synthesis/导出.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/导出.png") no-repeat center; |
| | | } |
| | | .twoMenu_imge87 { |
| | | background: url('../../assets/img/synthesis/清除.png') no-repeat center; |
| | | background: url("../../assets/img/synthesis/清除.png") no-repeat center; |
| | | } |
| | | } |
| | | </style> |