ol-cesium
ol-cesium copied to clipboard
Cannot disable interactions in 3D mode
Using map.getInteractions() it is possible to alter the current interactions in an Open Layers 3 map:
map.getInteractions().forEach(function(interaction) {
if (interaction instanceof ol.interaction.MouseWheelZoom) {
interaction.setActive(false);
}
}, this);
However, this does not work in 3D (Cesium). In this case, scroll wheel zoom is still enabled, in spite of the former code being run.
On the Cesium side I can disable scrollwheel zooming with:
map3d.getCesiumScene().screenSpaceCameraController.enableZoom = false;
However, that doesn't bring me back the normal page scrolling. The scrolling event seems to be captured and not propagated.
Yes, there is no support in OL3-Cesium for this.