# Fix minimum size of 3D globe cesium

**URL:** <https://community.cesium.com/t/fix-minimum-size-of-3d-globe-cesium/15167>\
**Category:** CesiumJS\
**Created:** [September 7, 2021, 6:54am UTC](https://community.cesium.com/t/fix-minimum-size-of-3d-globe-cesium/15167 "2021-09-07T06:54:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![James](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/james/32/6067_2.png) [@James](https://community.cesium.com/u/James)\
**Post date:** [September 7, 2021, 6:54am UTC](https://community.cesium.com/t/fix-minimum-size-of-3d-globe-cesium/15167/1 "2021-09-07T06:54:49Z")

</div>

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.

```auto
var viewer = new Cesium.Viewer("cesiumContainer", {
animation: false,
timeline: false
});

```

[Sandcastle link](https://sandcastle.cesium.com/#c=bY7BasMwDIZfRfjUQrDZtXXDoNfBDoOefFETdROT7WIrKd3Yuy9Jdxhbdfs/fb/QiAVGpgsV2EGiC+yp8hDtYWGrYLol73NS5EQlmAY+QwoJE0dUzmkDJ5RKzQyVI8mk/bAZfa23pjG+6lWoDQmWeeR4zkVhKLKy1inFs6BSdceheye1Xa3r7U327nfV9zwC97s7f0EnWOu0OQ0iL/xBwbTeTf6/qmTsOb0+j1QEr7P29tA+3aC11rsp3m9qznLE8ufyNw)

Any suggestion Thanks

---

<div class="post-metadata">

**Author:** ![ZhefengJin](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/zhefengjin/32/11504_2.png) [@ZhefengJin](https://community.cesium.com/u/ZhefengJin)\
**Post date:** [September 7, 2021, 1:59pm UTC](https://community.cesium.com/t/fix-minimum-size-of-3d-globe-cesium/15167/2 "2021-09-07T13:59:27Z")

</div>

```auto
viewer.scene.screenSpaceCameraController.minimumZoomDistance = 6378137;
viewer.scene.screenSpaceCameraController.maximumZoomDistance = 6378137 * 2;

```

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [September 7, 2021, 7:50pm UTC](https://community.cesium.com/t/fix-minimum-size-of-3d-globe-cesium/15167/3 "2021-09-07T19:50:59Z")

</div>

@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
