mirror of
https://github.com/ethan-zf/cesium-plot-js.git
synced 2025-06-23 19:17:29 +00:00
update example
This commit is contained in:
parent
30c319c1ed
commit
61615a9355
@ -66,11 +66,6 @@
|
||||
<button id="drawCurve">曲线</button>
|
||||
<button id="drawEllipse">椭圆</button>
|
||||
<button id="drawLune">半月面</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 = 'node_modules/cesium/Build/Cesium';
|
||||
|
@ -83,27 +83,27 @@ window.onload = () => {
|
||||
break;
|
||||
case 'drawFineArrow':
|
||||
geometry = new CesiumPlot.FineArrow(Cesium, viewer, {
|
||||
material: Cesium.Color.fromCssColorString('rgba(59, 178, 208, 0.5)'),
|
||||
outlineMaterial: Cesium.Color.fromCssColorString('rgba(59, 178, 208, 1)'),
|
||||
outlineWidth: 3,
|
||||
// material: Cesium.Color.fromCssColorString('rgba(59, 178, 208, 0.5)'),
|
||||
// outlineMaterial: Cesium.Color.fromCssColorString('rgba(59, 178, 208, 1)'),
|
||||
// outlineWidth: 3,
|
||||
});
|
||||
break;
|
||||
case 'drawAttackArrow':
|
||||
geometry = new CesiumPlot.AttackArrow(Cesium, viewer, {
|
||||
outlineMaterial: Cesium.Color.RED,
|
||||
// outlineMaterial: Cesium.Color.RED,
|
||||
});
|
||||
break;
|
||||
case 'drawSwallowtailAttackArrow':
|
||||
geometry = new CesiumPlot.SwallowtailAttackArrow(Cesium, viewer, {
|
||||
outlineMaterial: Cesium.Color.BLUE,
|
||||
// outlineMaterial: Cesium.Color.BLUE,
|
||||
});
|
||||
break;
|
||||
case 'drawSquadCombat':
|
||||
geometry = new CesiumPlot.SquadCombat(Cesium, viewer, {
|
||||
outlineMaterial: new Cesium.PolylineDashMaterialProperty({
|
||||
color: Cesium.Color.RED,
|
||||
dashLength: 16.0,
|
||||
}),
|
||||
// outlineMaterial: new Cesium.PolylineDashMaterialProperty({
|
||||
// color: Cesium.Color.RED,
|
||||
// dashLength: 16.0,
|
||||
// }),
|
||||
});
|
||||
break;
|
||||
case 'drawSwallowtailSquadCombat':
|
||||
@ -111,7 +111,7 @@ window.onload = () => {
|
||||
break;
|
||||
case 'drawStraightArrow':
|
||||
geometry = new CesiumPlot.StraightArrow(Cesium, viewer, {
|
||||
material: Cesium.Color.RED,
|
||||
// material: Cesium.Color.RED,
|
||||
});
|
||||
break;
|
||||
case 'drawAssaultDirection':
|
||||
@ -119,12 +119,12 @@ window.onload = () => {
|
||||
break;
|
||||
case 'drawCurvedArrow':
|
||||
geometry = new CesiumPlot.CurvedArrow(Cesium, viewer, {
|
||||
material: Cesium.Color.BLUE,
|
||||
// material: Cesium.Color.BLUE,
|
||||
});
|
||||
break;
|
||||
case 'drawDoubleArrow':
|
||||
geometry = new CesiumPlot.DoubleArrow(Cesium, viewer, {
|
||||
outlineMaterial: Cesium.Color.GREEN,
|
||||
// outlineMaterial: Cesium.Color.GREEN,
|
||||
});
|
||||
break;
|
||||
case 'drawFreehandLine':
|
||||
@ -141,9 +141,9 @@ window.onload = () => {
|
||||
break;
|
||||
case 'drawFreehandPolygon':
|
||||
geometry = new CesiumPlot.FreehandPolygon(Cesium, viewer, {
|
||||
material: Cesium.Color.GREEN,
|
||||
outlineMaterial: Cesium.Color.fromCssColorString('rgba(59, 178, 208, 1)'),
|
||||
outlineWidth: 2,
|
||||
// material: Cesium.Color.GREEN,
|
||||
// outlineMaterial: Cesium.Color.fromCssColorString('rgba(59, 178, 208, 1)'),
|
||||
// outlineWidth: 2,
|
||||
});
|
||||
break;
|
||||
case 'hide':
|
||||
|
Loading…
Reference in New Issue
Block a user