+
-
+
+
\ No newline at end of file
diff --git a/src/components/toolbar.vue b/src/components/toolbar.vue
index 9441678..c7d351a 100644
--- a/src/components/toolbar.vue
+++ b/src/components/toolbar.vue
@@ -4,29 +4,32 @@
创建人:Zhaipeixiu
-->
-
+
@@ -265,6 +292,7 @@ function manageLayer(){
+
@@ -296,25 +324,32 @@ function manageLayer(){
-
-
-
+
-
-
+
+
-
-
-
+
+ {{showDetection? '关闭图表': '显示图表'}}
+
+
+
+
+
+
+
+
-
diff --git a/src/store/layerManagerStore.ts b/src/store/layerManagerStore.ts
index 54534f9..032cb9f 100644
--- a/src/store/layerManagerStore.ts
+++ b/src/store/layerManagerStore.ts
@@ -12,6 +12,8 @@ export const useLayerStore = defineStore('LayerStore', {
state: ()=>{
return {
Layers: [] as layer[],
+ openDetect: true,
+ validYCData: false,
navi: {
airlines: [] as Airline[],
currentRouteID: -1, //当前航线号
diff --git a/src/store/staticOptions.js b/src/store/staticOptions.js
index c7b88ab..cba902c 100644
--- a/src/store/staticOptions.js
+++ b/src/store/staticOptions.js
@@ -13,7 +13,7 @@ export const useStaticStore = defineStore('staticOptions',{
},
menuOptions:{
EditOptions: [
- {label: '查询航线', key: 'requestLine'},
+ {label: '绘制航线', key: 'createLine'},
{label: '航线管理', key: 'manage'}
],
sceneOptions:[
diff --git a/src/styles/cesium-compass.css b/src/styles/cesium-compass.css
index 6fc10ee..7c71e39 100644
--- a/src/styles/cesium-compass.css
+++ b/src/styles/cesium-compass.css
@@ -49,7 +49,7 @@ screen and (max-height: 420px) {
.navigation-controls {
position: absolute;
right: 1.8rem;
- top: 65vh;
+ top: 55vh;
width: 2rem;
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: .3rem .3rem .3rem .3rem;
@@ -107,7 +107,7 @@ screen and (max-height: 420px) {
pointer-events: auto;
position: absolute;
right: 0;
- top: 50vh;
+ top: 41vh;
width: 6rem;
height: 6rem;
overflow: hidden;
diff --git a/src/utils/map/SpatialAnalysis.ts b/src/utils/map/SpatialAnalysis.ts
index 257da0e..d198ab2 100644
--- a/src/utils/map/SpatialAnalysis.ts
+++ b/src/utils/map/SpatialAnalysis.ts
@@ -8,7 +8,7 @@ import {getDistance, getElevation} from "@/utils/map/geocomputation.ts";
import {Cartesian3, Viewer} from "cesium";
import * as echarts from "echarts";
import {EChartsType} from "echarts";
-import {Airline, AirlinePoint} from "@/types/entityoptions.ts";
+import {Airline} from "@/types/entityoptions.ts";
type ProfileResult = {
distanceArray:number[],
elevationArray:number[],
@@ -84,7 +84,7 @@ export function profileAnalyse(viewer: Viewer, polyline:Cartesian3[], interval:
* @return 从折线起点至终点剖面线的海拔高度数组
*/
export function profileAnalyse_promise(viewer: Viewer, route: Airline, interval: number){
- return new Promise((resolve, reject) => {
+ return new Promise((resolve) => {
let result: ProfileResult = { distanceArray:[], elevationArray:[] }
let polyline = []
//航线转为坐标点数组
@@ -288,6 +288,13 @@ export function drawEchartsProfileAnalyse(xData:number[], yData:number[]) {
export function drawEcharts_CollisionDetection(myChart: EChartsType, xData:number[], yData:number[], height:number,max_distance:number) {
// 绘制图表
myChart.setOption({
+ /** 配置图标离容器上下左右的距离 */
+ grid: {
+ top: "20%",
+ right: "5%",
+ left:"10%",
+ bottom: "12%",
+ },
legend: {
show: true,
type: 'plain',
@@ -320,12 +327,11 @@ export function drawEcharts_CollisionDetection(myChart: EChartsType, xData:numbe
formatter:'地表高度: {c0}'
},
xAxis: {
- max: max_distance,
+ max: Math.ceil(max_distance).toString(),
data: xData,
nameTextStyle: {
fontWeight:'bolder',
fontSize: 14,
- padding:[0,0,-520,0]
},
nameLocation: 'bottom',
axisLine:{
@@ -427,6 +433,13 @@ export function drawEcharts_CollisionDetection(myChart: EChartsType, xData:numbe
export function drawEcharts_CollisionDetection2(myChart: EChartsType, xData:number[], yData:number[], yData2: number[]) {
// 绘制图表
myChart.setOption({
+ /** 配置图标离容器上下左右的距离 */
+ grid: {
+ top: "20%",
+ right: "5%",
+ left:"10%",
+ bottom: "12%",
+ },
legend: {
show: true,
type: 'plain',