<style scoped lang="scss">
.cesiumMap {
width: 100%;
height: 100%;
position: absolute;
}
// 删除页面上不需要的控件
:deep(.mars3d-compass) {
display: none;
}
:deep(.mars3d-distance-legend) {
display: none;
}
:deep(.mars3d-locationbar) {
display: none;
}
:deep(.cesium-viewer-toolbar) {
display: none;
}
:deep(.mars3d-mousedownview) {
display: none;
}
</style>
这段CSS代码用于在网页中隐藏Cesium地图的多个控件,包括指南针、距离图例、位置栏、工具栏和鼠标按下视图,以实现更简洁的界面展示。
722

被折叠的 条评论
为什么被折叠?



