소스 검색

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

qinhouyu 2 년 전
부모
커밋
e68125d246
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/components/supermap-2.5d.vue

+ 6 - 0
src/components/supermap-2.5d.vue

@@ -64,6 +64,7 @@
           mapData: null,
           mapName: null
         },
+        clickTime: new Date().getTime()
       }
     },
     watch: {},
@@ -476,6 +477,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)
           that.timer = null
           // 监听鼠标的当前位置坐标,然后根据当前坐标去动态更新气泡窗口div的显示位置;