From 91513e171078ed6b0887f87b9fced33895d6d3fb Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 08 七月 2025 08:35:50 +0800
Subject: [PATCH] 2025.7.8

---
 src/utils/map/util.js |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/utils/map/util.js b/src/utils/map/util.js
index 9eaa6a7..f12ee76 100644
--- a/src/utils/map/util.js
+++ b/src/utils/map/util.js
@@ -20,7 +20,20 @@
   clearViews() {
     map.clearMap()
   },
-  setFitView() {
-    map.setFitView()
+  setFitView(views) {
+    if (views) {
+      map.setFitView(views)
+    } else {
+      map.setFitView()
+    }
+  },
+  setZoomSmall() {
+    map.setZoom(18)
+  },
+  setZoomMedium() {
+    map.setZoom(14)
+  },
+  setZoomLarge() {
+    map.setZoom(6)
   }
 }

--
Gitblit v1.9.3