From e14ef8c7d972710ff28edccd6a8e9ff4fcf1684b Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 07 May 2024 19:13:13 +0800
Subject: [PATCH] 安保活动时间选择方式更换

---
 src/components/map/searchMapBox.vue |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/components/map/searchMapBox.vue b/src/components/map/searchMapBox.vue
index 85db7ef..34b580a 100644
--- a/src/components/map/searchMapBox.vue
+++ b/src/components/map/searchMapBox.vue
@@ -337,6 +337,16 @@
       if (routeRange.startsWith("POINT")) {
         this.addPoint(routeRange)
       }
+    },
+
+    setView(point){
+      let view = this.map.getView()
+      let center = [point.lng,point.lat]
+      view.setZoom(20)
+      view.animate({
+        center: center,
+        duration: 5,
+      })
     }
   },
   mounted() {

--
Gitblit v1.9.3