旋轉屬於交互事件,禁止旋轉需要在interation里面去定義,
相關設置: https://openlayers.org/en/latest/apidoc/module-ol_interaction.html
import {defaults as defaultInteractions} from 'ol/interaction'
this.map = new Map({ interactions: defaultInteractions({ pinchRotate: false // 移動端禁止地圖旋轉 }), layers: [ layers ], target: 'map', view: _this.view })