From ae5e8203a6008119d57453d3ae3833e9b541b7c4 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 16 Dec 2021 13:31:44 +0800
Subject: [PATCH] +

---
 src/components/mobilemap/index.vue |   48 +++++++++++++-----------------------------------
 1 files changed, 13 insertions(+), 35 deletions(-)

diff --git a/src/components/mobilemap/index.vue b/src/components/mobilemap/index.vue
index f666086..4d1b8a2 100644
--- a/src/components/mobilemap/index.vue
+++ b/src/components/mobilemap/index.vue
@@ -64,12 +64,12 @@
       bigPopup: {
         width: 0,
         height: 0,
-        transition: "all 3s",
+        // transition: "all 3s",
       },
     };
   },
   computed: {
-    ...mapGetters(["mviewer", "mBigPopup", "mBigPopupAfter"]),
+    ...mapGetters(["mviewer", "mBigPopup", "mBigPopupAfter", "iconHide"]),
   },
   watch: {
     mBigPopup() {
@@ -174,14 +174,17 @@
       });
       // let nowPosition = "";
       // 地图移动事件
-      // viewer.on(DC.MouseEventType.MOUSE_MOVE, (e) => {
-      //   if (that.popupWindow && that.popupsDom) {
-      //     that.popupsDom.closeOur();
-      //     that.popupWindow = false;
-      //   }
-      //   // nowPosition = [e.wgs84Position.lng, e.wgs84Position.lat];
-      //   // console.log(nowPosition);
-      // });
+      viewer.on(DC.MouseEventType.MOUSE_MOVE, (e) => {
+        if (!that.iconHide) {
+          that.$store.commit("MSET_ICONHIDE", true);
+        }
+        if (that.popupWindow && that.popupsDom) {
+          that.popupsDom.closeOur();
+          that.popupWindow = false;
+        }
+        // nowPosition = [e.wgs84Position.lng, e.wgs84Position.lat];
+        // console.log(nowPosition);
+      });
 
       // // eslint-disable-next-line camelcase
       // const baselayer_shaded = DC.ImageryLayerFactory.createArcGisImageryLayer({
@@ -246,32 +249,7 @@
 
         // 定制化窗体
         that.openPopupS(e.position, [e.wgs84Position.lng, e.wgs84Position.lat]);
-        // that.popupsDom = new DC.mobileDivForms(viewer, {
-        //   domId: "mobilePopup",
-        //   title: "成教楼  ",
-        //   className: "mobilePopup",
-        //   content: document.getElementById("mobile-map_content_content"),
-        //   position: [e.position],
-        // });
-        // console.log(e.position);
-        // that.positions = [e.wgs84Position.lng, e.wgs84Position.lat];
 
-        // // let flying = new DC.Flying(viewer);
-        // // flying.positions = [
-        // //   `${nowPosition[0]},${nowPosition[0]},0,-29`,
-        // //   `${e.wgs84Position.lng},${e.wgs84Position.lat},0,-29`,
-        // // ];
-        // // flying.start();
-        // console.log(e.wgs84Position.lng, e.wgs84Position.lat);
-        // viewer.zoomToPosition(
-        //   new DC.Position(
-        //     e.wgs84Position.lng,
-        //     e.wgs84Position.lat - 0.012,
-        //     1530,
-        //     0,
-        //     -45
-        //   )
-        // );
         // popup.setWrapper('<div></div>')
 
         // popup.showAt(e.position, document.getElementById('modelPopup'))

--
Gitblit v1.9.3