代码
<script>
Cesium.Camera.DEFAULT_VIEW_RECTANGLE = Cesium.Rectangle.fromDegrees(90, -20, 110, 90);
var viewer = new Cesium.Viewer("csiumContain", {
homeButton: true,
animation: false,
timeline: false,
fullscreenButton: false,
baseLayerPicker: false,
sceneModePicker: true,
navigationHelpButton: false,
geocoder: false,
sceneModePicker: false
});
var entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(120, 30, 10000),
model: {
uri: '../../static/CZML/Cesium_Air.glb',
minimumPixelSize: 1280,
color: Cesium.Color.WHITE.withAlpha(1),
maximumScale: 2000,
silhouetteColor: Cesium.Color.BLACK,
silhouetteSize: 2,
runAnimations: true,
scale: 1.0,
show: true
}
});
viewer.zoomTo(entity);
</script>
效果图
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/9e640b10934aa526e49f379156b150a6.png)