javascript - Fix minimum size of 3D globe cesium
问题描述
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
});
Any help is highly appreciated, Thanks
解决方案
viewer.scene.screenSpaceCameraController.minimumZoomDistance = 6378137;
viewer.scene.screenSpaceCameraController.maximumZoomDistance = 6378137 * 2;
推荐阅读
- r - 两边对数的回归公式
- nativescript - Spawn 发布到 Apple Store 失败的问题
- android - 如何在一封电子邮件中发送附件+邮件正文
- excel - VBA / Excel:如何允许用户使用下拉选项添加新行
- java - Hibernate & JPA“mappedBy”与关系和级联的所有者
- android - 标题在底部导航视图中对齐
- matlab - 无法遍历结构 matlab 的字段
- reactjs - 从类名中反应设置显示名的类装饰器
- mysql - Grails id 映射自动增量 - MySQL
- ios - 有没有办法将“NSDate.timeIntervalSinceReferenceDate”转换为像 Firebase 这样的字符串?