From d0f07e25103d7c7845c3b9534e8c66b5905447c0 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期三, 04 六月 2025 23:27:55 +0800
Subject: [PATCH] 动态溯源(待完成)

---
 src/utils/map/util.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/utils/map/util.js b/src/utils/map/util.js
index ee73357..1b7b3a6 100644
--- a/src/utils/map/util.js
+++ b/src/utils/map/util.js
@@ -1,5 +1,6 @@
 import { map, isDragging } from '@/utils/map/index_old';
 import marks from '@/utils/map/marks';
+import Layer from '@/utils/map/3dLayer';
 
 /**
  * 鍧愭爣闆嗗悎鐨勬渶瑗垮崡瑙掑拰鏈�涓滃寳瑙�
@@ -62,14 +63,14 @@
 };
 
 export default {
-  setCenter(lnglat) {
-    if (isDragging) {
+  setCenter(lnglat, ignore = false) {
+    if (!ignore && isDragging) {
       return;
     }
     var now = new Date();
     if (
       this.lasttime == undefined ||
-      now.getTime() - this.lasttime.getTime() >= 1000
+      now.getTime() - this.lasttime.getTime() >= 200
     ) {
       map.setCenter(lnglat);
       this.lasttime = now;
@@ -84,6 +85,7 @@
   clearMap() {
     marks.clearMassMarks();
     map.clearMap();
+    Layer.clear();
   },
   setFitView(views) {
     if (views) {

--
Gitblit v1.9.3