1.小知识-注释掉界面上的一些控件
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/546c29868c2d00b4747da007515988df.png)
代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<title>Hello World!</title>
<script src="../../Build/Cesium/Cesium.js"></script>
<style>
@import url(../../Build/Cesium/Widgets/widgets.css);
html,
body,
#cesiumContainer {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
</style>
</head>
<body>
<div id="cesiumContainer"></div>
<script>
var viewer = new Cesium.Viewer("cesiumContainer",
{
geocoder: false,
homeButton: false,
sceneModePicker: false,
baseLayerPicker: false,
navigationHelpButton: false,
animation: false,
timeline: false,
fullscreenButton: false,
});
viewer._cesiumWidget._creditContainer.style.display = "none";
</script>
</body>
</html>
注释完之后的界面(地球加载的时候需要一点时间,不要着急)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/0ea6fff2eec17bc72c51105f96485fca.png)