ol-cesium icon indicating copy to clipboard operation
ol-cesium copied to clipboard

Cannot disable interactions in 3D mode

Open jmgomezpoveda opened this issue 9 years ago • 2 comments

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.

jmgomezpoveda avatar Dec 04 '16 18:12 jmgomezpoveda

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.

jmgomezpoveda avatar Dec 04 '16 18:12 jmgomezpoveda

Yes, there is no support in OL3-Cesium for this.

gberaudo avatar Dec 05 '16 11:12 gberaudo