| | |
| | | zoomIn(val) { |
| | | this.$store.dispatch("mapFlyTo", { |
| | | //飞入 |
| | | lntLat: [115.87186406, 28.74449337, 1200], |
| | | lntLat: [115.87988885, 28.72502592, 2100], |
| | | // lntLat: [115.87186406, 28.74449337, 1200], |
| | | // lntLat: [121.50492752204283, 31.21567802276832, 2530], |
| | | heading: 0, |
| | | pitch: -45, |
| | |
| | | lat: 28.74382592, |
| | | }, |
| | | { |
| | | lnt: 121.50266534548483, |
| | | lat: 31.24357506330159, |
| | | lnt: 115.86711312, |
| | | lat: 28.74615701, |
| | | }, |
| | | { |
| | | lnt: 121.56405019, |
| | | lat: 31.20845211, |
| | | lnt: 115.86972136, |
| | | lat: 28.74609846, |
| | | }, |
| | | { |
| | | lnt: 121.55500463461836, |
| | | lat: 31.257934074839717, |
| | | lnt: 115.86983129, |
| | | lat: 28.741337, |
| | | }, |
| | | ], |
| | | }; |
| | |
| | | let that = this; |
| | | console.log(command, "定位"); |
| | | // 定位 |
| | | this.$store.commit("MSETCC_SETCC", { |
| | | lntLat: [command.lnt, command.lat], |
| | | }); |
| | | this.$store.dispatch("mapFlyTo", { |
| | | //飞入 |
| | | lntLat: [command.lnt, command.lat, 2530], |
| | | lntLat: [command.lnt, command.lat, 500], |
| | | heading: 0, |
| | | pitch: -45, |
| | | roll: 0, |
| | |
| | | return; |
| | | } |
| | | let that = this; |
| | | // console.log(that.ourData.lntLat); |
| | | if (val == "定位") { |
| | | //随地图移动窗口 |
| | | this.$store.commit("MSET_BIGPOPUP", false); //关闭全屏弹窗 |
| | |
| | | //瀑布流↑ |
| | | |
| | | //飞入起始点 |
| | | that.$store.dispatch("mapFlyTo", { |
| | | lntLat: [115.87186406, 28.74449337, 1200], |
| | | heading: 0, |
| | | pitch: -45, |
| | | roll: 0, |
| | | noOpen: true, |
| | | }); |
| | | // that.$store.dispatch("mapFlyTo", { |
| | | // lntLat: [115.87186406, 28.74449337, 1200], |
| | | // heading: 0, |
| | | // pitch: -45, |
| | | // roll: 0, |
| | | // noOpen: true, |
| | | // }); |
| | | //地图渲染完成执行srore中MSET_CREADE |
| | | // that.$store.dispatch("MSET_CREADE"); |
| | | |
| | |
| | | el.addClass(className || '') |
| | | |
| | | $('#mobile-map_popup_content').append(el) |
| | | // let time; |
| | | // function cons(e) { |
| | | // time = setTimeout(() => { |
| | | // console.log(e) |
| | | // console.log(e.sun._drawingBufferHeight) |
| | | // console.log("roll: ", e.camera.roll) |
| | | // console.log("pitch: ", e.camera.pitch) |
| | | // console.log("heading: ", e.camera.heading) |
| | | // clearTimeout(time); |
| | | // time = ""; |
| | | // }, 2000); |
| | | // } |
| | | |
| | | this._viewer.scene.postRender.addEventListener(function () { |
| | | this._viewer.scene.postRender.addEventListener(function (e) { |
| | | if (!self.isOpen) { |
| | | return; |
| | | } |
| | |
| | | self._viewer.scene, |
| | | position |
| | | ) |
| | | |
| | | // time || cons(e); |
| | | self.positionPopUp(windowCoord, id) |
| | | }) |
| | | } |
| | |
| | | if (!windowCoord) { |
| | | return; |
| | | } |
| | | // console.log(windowCoord) |
| | | const wx = document.getElementById('app').clientWidth; |
| | | const x = windowCoord.x - (wx / 100 * 35); |
| | | const y = windowCoord.y - document.getElementById(id).offsetHeight - 15; |
| | |
| | | popupsDom: '',//mobileDivForms的实体类 |
| | | query: {},//传输数据 |
| | | openmobileGoTo: false,//测试 |
| | | ccDataState: false,//测试 |
| | | openmobilePanorama: false,//实景显影 |
| | | MobileWindowsHideFixed: true,//改变点击窗口的显示状态--固定窗口 |
| | | MobileWindowChangeDataFixed: false,//改变点击窗口的数据--固定窗口 |
| | |
| | | state.MobileWindowChangeData = !state.MobileWindowChangeData; |
| | | state.MobileWindowsHide = viewer |
| | | }, |
| | | MSETCC_SETCC(state, viewer) { |
| | | state.ccDataState = !state.ccDataState;//专门测试 |
| | | state.query = viewer; |
| | | }, |
| | | MSET_POPUPDOM(state, viewer) { |
| | | state.popupsDom = viewer |
| | | }, |