From 997262e44f7f9e8d0cde869cfd026ef8c0850efd Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 16 Dec 2021 11:18:57 +0800
Subject: [PATCH] 增加弹窗中跳转地图并显示当前建筑弹窗
---
src/components/mobilePopupOurOnce/index.vue | 39 ++++++++++++++++++++++++++++-----------
1 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/src/components/mobilePopupOurOnce/index.vue b/src/components/mobilePopupOurOnce/index.vue
index 7967a8f..ace4082 100644
--- a/src/components/mobilePopupOurOnce/index.vue
+++ b/src/components/mobilePopupOurOnce/index.vue
@@ -31,6 +31,14 @@
export default {
props: ["onceData"],
name: "mobilePopupOurOnce",
+ created() {
+ this.DC = global.DC;
+ },
+ data() {
+ return {
+ DC: "",
+ };
+ },
computed: {
...mapGetters(["mviewer"]),
seebut() {
@@ -46,17 +54,26 @@
},
methods: {
openOnce(val) {
- console.log(val, this.onceData.name);
- // 定位
- // this.mviewer.zoomToPosition(
- // new DC.Position(
- // e.wgs84Position.lng,
- // e.wgs84Position.lat - 0.016,
- // 1530,
- // 0,
- // -45
- // )
- // );
+ let that = this;
+ console.log(val, this.onceData);
+ if (val == "定位") {
+ this.$store.commit("MSET_BIGPOPUP", false);
+ setTimeout(() => {
+ // that.$refs.mobilemapBoxFrom.openPopupS(
+ // this.onceData.Cartesian3,
+ // this.onceData.position
+ // );
+ that.$parent.$parent.$parent.$parent.openPopupS(
+ this.onceData.Cartesian3,
+ this.onceData.position
+ );
+ // console.log(that.$refs.mobilemapBoxFrom);
+ // 定位 打开弹窗
+ // this.mviewer.zoomToPosition(
+ // new that.DC.Position(p[0], p[1] - 0.016, 1530, 0, -45)
+ // );
+ }, 500);
+ }
},
},
};
--
Gitblit v1.9.3