Is there a way to dynamically change interactions in Openlayers? I set interactions
import {defaults as defaultInteractions} from 'ol/interaction.js';
var interactions = defaultInteractions({
constrainResolution: true,
onFocusOnly: true,
doubleClickZoom: false,
altShiftDragRotate:false,
pinchRotate:false
});
But let's say I want to have a user button where they can turn on (or toggle between) pinchRotate? I've tried searching this questions a thousand different ways and can't seem to find how to modify the interactions after the map is rendered.