From 19b4cb936d8b1f149fb53b3c43ee05c99dd5c161 Mon Sep 17 00:00:00 2001 From: xiaosi <2652281683@qq.com> Date: Thu, 27 Aug 2026 17:45:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20MapLayer=20=E5=BC=80=E5=90=AF=20globe?= =?UTF-8?q?=20=E5=B9=B6=E4=BB=A5=E4=B8=AD=E5=9B=BD=E6=80=BB=E8=A7=88?= =?UTF-8?q?=E7=9B=B8=E6=9C=BA=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 MAP_OVERVIEW / MAP_VIEW,minZoom 1.5,projection globe。 --- src/config/map.js | 11 +++++++++++ src/layout/MapLayer.vue | 9 +++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/config/map.js b/src/config/map.js index 1fed006..da8d9a0 100644 --- a/src/config/map.js +++ b/src/config/map.js @@ -5,6 +5,17 @@ export const MAP_STYLES = { street: 'mapbox://styles/mapbox/streets-v12', } +/** 监控全球总览:固定中国居中,不跟 env 贵州中心 */ +export const MAP_OVERVIEW = { + center: [104.0, 35.0], + zoom: 1.8, +} + +export const MAP_VIEW = { + detailZoom: 16, + minZoom: 1.5, +} + export default { token, center: [ diff --git a/src/layout/MapLayer.vue b/src/layout/MapLayer.vue index 03fa013..b6de6d0 100644 --- a/src/layout/MapLayer.vue +++ b/src/layout/MapLayer.vue @@ -1,7 +1,7 @@