初始化设置 关闭雾气、 版权信息
viewer.scene.fog.enabled = false;//关闭雾气
viewer.scene.globe.showGroundAtmosphere = false;//关闭大器
viewer.scene.globe.baseColor = Color.fromCssColorString(CONFIG.backColor);//设置地球默认背景颜色
viewer._cesiumWidget._creditContainer.style.display = "none";// 去掉版权信息
vue与cesium结合,不让vue拦截cesium
为了不让vue 拦截cesium对象,与cesium相关的属性对象前缀必须是’_‘或’$’
Properties that start with _ or $ will not be proxied on the component instance because they may conflict with Vue’s internal properties and API methods. You will have to access them as vm.$data._property.
cesium帮助按钮汉化:
function navigationHelpButtonLang(_viewer) {
var viewer = _viewer;
if (viewer.navigationHelpButton) {
viewer.navigationHelpButton.viewModel.tooltip = "操作指南";
var clickHelper = viewer.navigationHelpButton.container.getElementsByClassName(
"cesium-click-navigation-help"
)