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; }