Browse Source

Merge remote-tracking branch 'origin/visu_environment_01_siping_2.5d' into visu_environment_01_siping_2.5d

王通 2 năm trước cách đây
mục cha
commit
df011418a3
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      src/components/supermap-2.5d.vue

+ 7 - 1
src/components/supermap-2.5d.vue

@@ -65,6 +65,7 @@
           mapData: null,
           mapName: null
         },
+        clickTime: new Date().getTime()
       }
     },
     watch: {},
@@ -478,6 +479,11 @@
         let that = this;
         that.handler.setInputAction(function(movement) {
           that.mapshow = false
+          if (new Date().getTime() - that.clickTime < 2000) {
+            return
+          } else {
+            that.clickTime = new Date().getTime()
+          }
           clearInterval(that.timer)
           // 监听鼠标的当前位置坐标,然后根据当前坐标去动态更新气泡窗口div的显示位置;
           that.pick = that.viewer.scene.pick(movement.position);
@@ -594,4 +600,4 @@
     opacity: 0;
     transform: translateY(-10rem);
   }
-</style>
+</style>