James
September 7, 2021, 6:54am
1
I want to fix the minimum size of 3D globe such as if user decreases the size through mouse it should not decrease beyond some fixed value.
var viewer = new Cesium.Viewer("cesiumContainer", {
animation: false,
timeline: false
});
Sandcastle link
Any suggestion Thanks
viewer.scene.screenSpaceCameraController.minimumZoomDistance = 6378137;
viewer.scene.screenSpaceCameraController.maximumZoomDistance = 6378137 * 2;
2 Likes
@ZhefengJin
Thank you very much for the suggestion. I implemented your suggestion on my local machine and got the desired result. @James have you given this a try yet?
-Sam