From 660021a28de9b84b4362c171fdbbf89587f0c5af Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 13 二月 2025 17:30:50 +0800
Subject: [PATCH] 1. 修改部分bug 2. 新增2D路线轨迹绘制

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

diff --git a/src/utils/map/util.js b/src/utils/map/util.js
index ee73357..e783baf 100644
--- a/src/utils/map/util.js
+++ b/src/utils/map/util.js
@@ -62,14 +62,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;

--
Gitblit v1.9.3