在ol.View下放 enableRotation: false,
const map = new ol.Map({
target: 'mapCon',
layers: [gaodeMapLayer],
view: new ol.View({
projection: 'EPSG:4326',
center: [initLng, initLat],
zoom: 12,
maxzoom: 20,
//这里加入下面代码
enableRotation: false,
}),