cesium-plot-js/index.html

57 lines
1.5 KiB
HTML
Raw Normal View History

2023-08-08 11:45:54 +00:00
<!DOCTYPE html>
2023-08-08 07:41:52 +00:00
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CesiumPlot</title>
2023-08-08 11:45:54 +00:00
<style>
@import url(/examples/cesium/Widgets/widgets.css);
html,
body,
#cesiumContainer {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
2023-08-16 08:17:33 +00:00
/* #btn {
2023-08-08 11:45:54 +00:00
position: absolute;
top: 10px;
left: 10px;
2023-08-16 08:17:33 +00:00
} */
.button-container {
position: absolute;
top: 10px;
left: 10px;
display: flex; /* 使用 Flex 布局 */
justify-content: center; /* 水平居中对齐 */
}
.button {
margin: 0 10px; /* 按钮之间的间距 */
padding: 6px 10px; /* 按钮内边距 */
background-color: #3498db; /* 按钮背景颜色 */
color: #ffffff; /* 按钮文字颜色 */
border: none; /* 去除边框 */
border-radius: 5px; /* 圆角边框 */
cursor: pointer; /* 鼠标指针样式 */
2023-08-08 11:45:54 +00:00
}
</style>
2023-08-08 07:41:52 +00:00
</head>
<body>
<div id="root"></div>
2023-08-08 11:45:54 +00:00
<div id="cesiumContainer"></div>
2023-08-16 08:17:33 +00:00
<div class="button-container">
<button id="drawFineArrow" class="button">直箭头</button>
<button id="drawAttackArrow" class="button">进攻方向箭头</button>
</div>
2023-08-08 11:45:54 +00:00
<script>
2023-08-16 08:17:33 +00:00
window.CESIUM_BASE_URL = './examples/cesium';
2023-08-08 11:45:54 +00:00
</script>
<script type="module" src="./examples/index.ts"></script>
2023-08-08 07:41:52 +00:00
</body>
</html>