| | |
| | | </div> |
| | | <mapinfo ref="mapinfo" /> |
| | | <maplayer ref="maplayer" /> |
| | | <queryinfo ref="queryinfo" /> |
| | | <input |
| | | type="file" |
| | | accept=".kml" |
| | |
| | | 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, |
| | |
| | | sgworld.Creator.SimpleGraphic.edit(true, { editProp: true }); |
| | | this.setPlot(res.id); |
| | | break; |
| | | |
| | | |
| | | } |
| | | }, |
| | | setPlot(res) { |
| | |
| | | } |
| | | ); |
| | | 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) { |
| | | this.isContrastFlag = true; |
| | |
| | | ); |
| | | } |
| | | break; |
| | | |
| | | case 'd11': |
| | | if (window.Excavation) { |
| | | window.Excavation.clear(); |
| | |
| | | { 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'); |
| | | }, |
| | |
| | | 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; |
| | | } |
| | | }, |
| | |
| | | }); |
| | | this.$bus.$on('showLeftMenu', (res) => { |
| | | this.$store.state.showAllLayers = true; |
| | | |
| | | this.setCoverage('a1'); |
| | | // this.$bus.$emit('setAllLayers', true); |
| | | |
| | | }); |
| | | }, |
| | | }; |