Cesium与Three融合的案例demo
html
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<style>
html,
body,
.main,
#app {
margin: 0;
padding: 0;
overflow: hidden;
}
.box-card {
margin: 5px;
margin-bottom: 0;
background: rgba(71, 71, 71, 0.8);
}
.cesium-viewer-cesium3DTilesInspectorContainer {
display: none !important;
}
#top-menu {
position: absolute;
z-index: 1;
pointer-events: none;
}
.top-wrapper {
width: 100%;
height: 70px;
opacity: 0;
}
.top-bag {
width: 100%;
}
.top-title {
position: absolute;
width: 600px;
height: 65px;
top: 15px;
left: 50%;
text-align: center;
letter-spacing: 8px;
font-size: 36px;
color: #fff;
opacity: 1;
transform: translate(-50%, 0);
}
.HYZongYiTiJ,
.SourceHanSansCN-Medium {
font-size: 25px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
</head>
<body>
<div class="top-wrapper" id="top-menu" style="opacity: 1;"><video autoplay="autoplay" loop="loop" muted="muted"
src="./img/UI/top.webm" type="video/webm" class="top-bag"></video>
<p class="top-title HYZongYiTiJ">
GIS与3D引擎融合案例
</p>
</div>
<div id="app"></div>
<!-- <script type="text/javascript" src="./scripts/element.index.js"></script>
<link rel="stylesheet" href="./scripts/element.index.css"> -->
<script src="./dat.gui/dat.gui.min.js"></script>
<link rel="stylesheet" href="./dat.gui/dat.gui.css">
<!-- <link rel="stylesheet" href="./css/measuretool.css"> -->
<link rel="stylesheet" href="./css/common.css">
<!-- <script src="./demojs/lineComon.js"></script> -->
<script type="text/javascript" src="./demojs/deployConfig.js"></script>
<script type="module" src="/src/main.ts"></script>
<script src="./scripts/wow.js"></script>
</body>
</html>