screenSpaceCameraController.maximumZoomDistance not work

My code is below:

viewer.scene.screenSpaceCameraController.maximumZoomDistance = 300000;

when I set:

 viewer.scene.screenSpaceCameraController.enableCollisionDetection = false;

then maximumZoomDistance is not work. It is correct?

Hi @andy259,

Thank you for your question :rocket: and welcome to the community! Can you please share some high-level information on your desired use case for maximumZoomDistance and enableCollisionDetection?

At a high level, it does not seem intuitive to me that enableCollisionDetection would impact maximumZoomDistance in any way. Curious to learn more.

-Sam

Hi,thank you for your reply.

I wanted maximumZoomDistance working on any case.But when I set enableCollisionDetection to false,camera can higher than maximumZoomDistance value.

here is the sandcastle example

The code is below

const viewer = new Cesium.Viewer("cesiumContainer");
viewer.scene.camera.setView({
    destination : Cesium.Cartesian3.fromDegrees(-117.16, 32.71, 15000.0)
});
viewer.scene.screenSpaceCameraController.maximumZoomDistance = 300000;

Sandcastle.addToolbarButton("EnableCollisionDetection", function () {
   viewer.scene.screenSpaceCameraController.enableCollisionDetection = true;
});

Sandcastle.addToolbarButton("DisableCollisionDetection", function () {
   viewer.scene.screenSpaceCameraController.enableCollisionDetection = false;
});

Sorry for my poor english.

Hi @andy259,

Thank you for sharing this sandcastle demo with the community! The sandcastle demo does a nice job illustrating the error that you are describing. In addition, I am getting a black screen after disabling and re-enabling EnableCollisionDetection. I think a great next step would be to write up this issue in our GitHub repository.

Our CesiumJS team will take a look at it as soon as possible.

Best,
Sam

Thanks,I have written the issue.

Thank you very much, @andy259