From 89ab2ec7f8790c5cc184de98682af032c69c2afc Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 11 九月 2024 15:13:27 +0800 Subject: [PATCH] 2024.9.11 --- 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