mirror of
https://github.com/ethan-zf/cesium-plot-js.git
synced 2025-06-24 03:27:29 +00:00
65 lines
2.0 KiB
HTML
65 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>CesiumPlot</title>
|
|
<style>
|
|
@import url(/examples/cesium/Widgets/widgets.css);
|
|
html,
|
|
body,
|
|
#cesiumContainer {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.button-container {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.button-container button {
|
|
margin: 0 10px;
|
|
padding: 6px 10px;
|
|
background-color: #3498db;
|
|
color: #ffffff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<div id="cesiumContainer"></div>
|
|
<div class="button-container" id="button-group">
|
|
<button id="drawStraightArrow">细直箭头</button>
|
|
<button id="drawCurvedArrow">曲线箭头</button>
|
|
<button id="drawFineArrow">直箭头</button>
|
|
<button id="drawAttackArrow">进攻方向箭头</button>
|
|
<button id="drawSwallowtailAttackArrow">进攻方向箭头(燕尾)</button>
|
|
<button id="drawSquadCombat">分队战斗方向</button>
|
|
<button id="drawSwallowtailSquadCombat">分队战斗方向(燕尾)</button>
|
|
<button id="drawAssaultDirection">突击方向</button>
|
|
<button id="drawDoubleArrow">双箭头</button>
|
|
<button id="drawFreehandLine">自由线</button>
|
|
<button id="drawFreehandPolygon">自由面</button>
|
|
<button id="hide">隐藏</button>
|
|
<button id="show">显示</button>
|
|
<button id="remove">删除</button>
|
|
<button id="addEvent">绑定事件</button>
|
|
<button id="removeEvent">解绑事件</button>
|
|
</div>
|
|
<script>
|
|
window.CESIUM_BASE_URL = './examples/cesium';
|
|
</script>
|
|
<script type="module" src="./examples/index.ts"></script>
|
|
</body>
|
|
</html>
|