| | |
| | | id="FullScreenBox" |
| | | > |
| | | <div class="title"> |
| | | <img |
| | | @click="returnDetailsPopup" |
| | | class="return-btn" |
| | | src="/img/icon/return.png" |
| | | alt |
| | | /> |
| | | {{ stateName }} |
| | | <img |
| | | @click="screen" |
| | |
| | | <div class="monitor-wrap"> |
| | | <div class="content-wrap"> |
| | | <div class="title"> |
| | | <img |
| | | @click="returnDetailsPopup" |
| | | class="return-btn" |
| | | src="/img/icon/return.png" |
| | | alt |
| | | /> |
| | | {{ stateName }} |
| | | <img |
| | | @click="closeMonitorPopupBox" |
| | |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | | 'viewer', |
| | | 'popupBgUrl', |
| | | 'pupupQRUrl', |
| | | // 终点 |
| | |
| | | this.audioCourse = false |
| | | } |
| | | }, |
| | | mounted () { }, |
| | | mounted () { |
| | | global.viewer.scene.globe.depthTestAgainstTerrain = false |
| | | }, |
| | | watch: { |
| | | addIconsLayerIconPopup () { |
| | | if (this.addIconsLayerIconPopup) { |
| | |
| | | // eslint-disable-next-line new-cap |
| | | new global.DC.Position.fromArray(this.pointPosition) |
| | | ) |
| | | this.viewer.scene.globe.depthTestAgainstTerrain = false |
| | | |
| | | // eslint-disable-next-line no-unused-vars |
| | | var panorama = new global.DC.PanoramaBox(this.viewer, { |
| | | var panorama = new global.DC.PanoramaBox(global.viewer, { |
| | | domId: 'PanoramaBox', |
| | | position: [positions] |
| | | }) |
| | |
| | | // eslint-disable-next-line new-cap |
| | | new global.DC.Position.fromArray(this.pointPosition) |
| | | ) |
| | | this.viewer.scene.globe.depthTestAgainstTerrain = false |
| | | // eslint-disable-next-line no-unused-vars |
| | | var monitor = new global.DC.PanoramaBox(this.viewer, { |
| | | var monitor = new global.DC.PanoramaBox(global.viewer, { |
| | | domId: 'MonitorBox', |
| | | position: [positions] |
| | | }) |
| | | this.$store.commit('SET_PANORAMAPOPUP', false) |
| | | this.$store.commit('SET_DETAILSPOPUP', false) |
| | | this.$store.commit('SET_MONITORPOPUP', true) |
| | | }, |
| | | |
| | | returnDetailsPopup () { |
| | | var positions = global.DC.Transform.transformWGS84ToCartesian( |
| | | // eslint-disable-next-line new-cap |
| | | new global.DC.Position.fromArray(this.pointPosition) |
| | | ) |
| | | |
| | | // eslint-disable-next-line no-unused-vars |
| | | var divBox = new global.DC.PanoramaBox(global.viewer, { |
| | | domId: 'divFormsDomBox', |
| | | position: [positions] |
| | | }) |
| | | |
| | | global.viewer.zoomToPosition( |
| | | // eslint-disable-next-line new-cap |
| | | new global.DC.Position.fromArray(this.pointPosition) |
| | | ) |
| | | |
| | | this.$store.commit('SET_DETAILSPOPUP', true) |
| | | this.$store.commit('SET_MONITORPOPUP', false) |
| | | this.$store.commit('SET_PANORAMAPOPUP', false) |
| | | }, |
| | | |
| | | closeMapPopupBox () { |
| | |
| | | |
| | | // if (this.addTagLayer == null) { |
| | | // this.addTagLayer = new global.DC.HtmlLayer("addTagLayer"); |
| | | // this.viewer.addLayer(this.addTagLayer); |
| | | // global.viewer.addLayer(this.addTagLayer); |
| | | // } |
| | | |
| | | // 2022.3.2对接接口 |
| | |
| | | } |
| | | |
| | | this.newPopup(result) |
| | | this.viewer.flyToPosition( |
| | | global.viewer.flyToPosition( |
| | | new global.DC.Position( |
| | | Number(result.jd), |
| | | Number(result.wd), |
| | |
| | | new global.DC.Position(Number(item.jd), Number(item.wd), Number(item.gd)) |
| | | ) |
| | | // eslint-disable-next-line no-unused-vars |
| | | var popup = new global.DC.DivForms(this.viewer, { |
| | | var popup = new global.DC.DivForms(global.viewer, { |
| | | domId: 'divFormsDomBox', |
| | | position: [position] |
| | | }) |