guonan
8 天以前 d06f7ad0231d5fb029ab8520bf442590d3bab20b
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
47
48
49
50
51
52
53
54
55
56
57
<template>
  <div class="settings-panel">
    <el-button type="primary" @click="analyzeShadows">阴影分析</el-button>
  </div>
</template>
<script setup>
import { reactive, watch } from "vue";
import mapUtils from "@/utils/tools.js";
 
// 定义表单数据
const form = reactive({
  renderSize: '1024px X 1024px', // 默认渲染大小
  lightShadow: true, // 默认开启光源阴影
  softShadow: true, // 默认关闭软阴影
});
 
// 渲染大小选项
const sizeOptions = [
  { value: '2048px X 2048px', label: '2048px X 2048px' },
  { value: '1024px X 1024px', label: '1024px X 1024px' },
  { value: '512px X 512px', label: '512px X 512px' },
  { value: '256px X 256px', label: '256px X 256px' },
];
 
// 阴影分析按钮点击事件
const analyzeShadows = () => {
  window.Viewer = earthCtrl.viewer;
  mapUtils.AnalysisSunshine()
};
 
</script>
<style lang="less" scoped>
.settings-panel {
  padding: 20px;
  width: 350px;
  background: url("@/assets/img/tools/plotting_new.png") no-repeat;
  filter: opacity(83%);
  background-size: 100% 100%;
  box-sizing: border-box;
}
 
.terrain-settings {
  .el-form-item {
    margin-bottom: 10px;
  }
 
  .el-select,
  .el-switch {
    margin-right: 10px;
  }
 
  .el-button {
    width: 100%;
    margin-top: 10px;
  }
}
</style>