禁用所有旋转和俯仰角控制

This commit is contained in:
hym 2025-11-24 17:25:45 +08:00
parent 220da59e62
commit 51478c40c9
1 changed files with 8 additions and 3 deletions

View File

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