Cesium 是从viewer初始化开始,默认Viewer显示内容如下
var viewer = new Cesium.Viewer("cesiumContainer");
const viewer = new Cesium.Viewer('cesiumContainer', {
// ......
geocoder: false, //隐藏查找控件1
homeButton: false, //隐藏视角返回初始位置按钮2
sceneModePicker: false, //隐藏视角模式3D 2D CV 3
baseLayerPicker: false, //隐藏图层选择4
navigationHelpButton: false, //隐藏帮助5
animation: false, //隐藏动画控件6
timeline: false, //隐藏时间线控件8
fullscreenButton: false //隐藏全屏 9
//......
//......
});
.cesium-viewer-toolbar, /* 右上角按钮组 */
.cesium-viewer-animationContainer, /* 左下角动画控件 */
.cesium-viewer-timelineContainer, /* 时间线 */
.cesium-viewer-bottom /* logo信息 */
{
display: none;
}
.cesium-viewer-fullscreenContainer /* 全屏按钮 */
{position: absolute; top: -999em;}
初始化后的函数里增加js代码
viewer._cesiumWidget._creditContainer.style.display = "none";