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 @@