From 51478c40c9a5bbed05fdbbd5e96bf1029b919b8b Mon Sep 17 00:00:00 2001 From: hym Date: Mon, 24 Nov 2025 17:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8=E6=89=80=E6=9C=89=E6=97=8B?= =?UTF-8?q?=E8=BD=AC=E5=92=8C=E4=BF=AF=E4=BB=B0=E8=A7=92=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/home.vue b/src/views/home.vue index 1c8c96f..828e0cd 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -399,8 +399,12 @@ export default { scrollZoom: false, // 禁用滚轮缩放 // 地图默认字体 localIdeographFontFamily: "Microsoft YoHei, 'Noto Sans', 'Noto Sans CJK SC', sans-serif", - pitch: 0, - bearing: 0, + pitch: 0, // 初始俯仰角为0 + bearing: 0, // 初始方位角为0 + // 禁用所有旋转和俯仰角控制 + dragRotate: false, + touchZoomRotate: false, + pitchWithRotate: false, // maxBounds: [[-180, -90], [180, 90]],// Set the map's geographical boundaries. antialias: true, attributionControl: false, @@ -1437,7 +1441,8 @@ export default { justify-content: center; img { - width: auto; height: auto; + width: auto; + height: auto; display: block; margin-bottom: 20px; }