From 88db88c99f57427114a415b3657ed520842bafca Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 14 五月 2024 16:01:08 +0800 Subject: [PATCH] Merge branch 'master' of ssh://114.215.109.124:29418/underway-vue --- src/utils/map/util.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/utils/map/util.js b/src/utils/map/util.js index 3da926d..27871e9 100644 --- a/src/utils/map/util.js +++ b/src/utils/map/util.js @@ -13,5 +13,14 @@ map.setCenter(lnglat); this.lasttime = now; } + }, + addViews(view) { + map.add(view); + }, + removeViews(view) { + map.remove(view); + }, + setFitView() { + map.setFitView(); } }; -- Gitblit v1.9.3