//設定不能縮放
interactions: ol.interaction.defaults({
doubleClickZoom: false,
mouseWheelZoom: false,
shiftDragZoom: false,
pinchZoom:false
}),
設定不能旋轉
altShiftDragRotate:false,
pinchRotate:false
//設定不能縮放
interactions: ol.interaction.defaults({
doubleClickZoom: false,
mouseWheelZoom: false,
shiftDragZoom: false,
pinchZoom:false
}),
設定不能旋轉
altShiftDragRotate:false,
pinchRotate:false