智慧园区前端大屏
shuishen
2024-12-18 9a37c5e1b2190c3f6ec71483923922189091dd52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!--
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-03-10 15:28:07
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-19 22:05:04
 * @FilePath: \forest-fire\src\views\armyLocal\components\leftContainer.vue
 * @Description: 防火预警
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
-->
<script setup>
let entity = global.viewer.entities.add({
    name: "Red polygon on surface",
    polygon: {
        hierarchy: global.DC.Namespace.Cesium.Cartesian3.fromDegreesArray([-115.0, 37.0, -115.0, 32.0, -107.0, 33.0, -102.0, 31.0, -102.0, 35.0,]),
        material: global.DC.Namespace.Cesium.Color.fromBytes(255, 97, 97, 150),
        outline: true,
        outlineColor: global.DC.Color.WHITE,
        outlineWidth: 10000,
        height: 20000,
        heightReference: global.DC.Namespace.Cesium.HeightReference.RELATIVE_TO_GROUND,
        zIndex: 999
    },
});
 
</script>
 
<template>
    <div class="left-container">
        <el-button type="primary">绘制多边形</el-button>
        <el-button type="primary">绘制线段</el-button>
        <el-button type="primary">绘制图标点</el-button>
    </div>
</template>
 
<style lang="scss" scoped>
.left-container {
    position: absolute;
    top: 200px;
    left: 20px;
    bottom: 120px;
    width: 400px;
    pointer-events: auto;
 
}
</style>