禁用所有旋转和俯仰角控制
This commit is contained in:
parent
220da59e62
commit
51478c40c9
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue