From 5e8bae06d5a05240bd8e0aa756eaacea363fcc62 Mon Sep 17 00:00:00 2001 From: guonan <guonan201020@163.com> Date: 星期五, 18 四月 2025 18:38:44 +0800 Subject: [PATCH] 提交 --- src/assets/img/left/colors3.png | 0 src/views/mnfz.vue | 136 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+), 1 deletions(-) diff --git a/src/assets/img/left/colors3.png b/src/assets/img/left/colors3.png new file mode 100644 index 0000000..d5fac7c --- /dev/null +++ b/src/assets/img/left/colors3.png Binary files differ diff --git a/src/views/mnfz.vue b/src/views/mnfz.vue index 944ac04..7fd5181 100644 --- a/src/views/mnfz.vue +++ b/src/views/mnfz.vue @@ -27,6 +27,8 @@ import { getMaxInfluenceArea } from "@/api/index"; import { createPoint, geomToGeoJSON } from "@/utils/map.js"; + +import colors from "@/assets/img/left/colors3.png"; import { checkedKeys } from "@/store/index"; const waterSimulateParams = ref({}); const showWaterSimulate = ref(false); @@ -76,6 +78,138 @@ viewer.dataSources.remove(dataSource); }); } +let TrailLine = []; +async function showLine() { + const position = [ + { + x: -2172540.8322597803, + y: 4339064.62665997, + z: 4126183.3895281963, + }, + { + x: -2172480.18394144, + y: 4339033.15167176, + z: 4126240.9529584926, + }, + { + x: -2172454.114348403, + y: 4339020.0398392705, + z: 4126261.946960697, + }, + { + x: -2172377.9670952093, + y: 4338976.609385458, + z: 4126333.862357211, + }, + { + x: -2172299.4142002705, + y: 4338951.971578909, + z: 4126397.5205803993, + }, + { + x: -2172245.1703274297, + y: 4338940.86037857, + z: 4126436.276389208, + }, + { + x: -2172176.7332184147, + y: 4338930.525741544, + z: 4126477.629952572, + }, + { + x: -2172173.8151051304, + y: 4338939.043883864, + z: 4126469.336927342, + }, + { + x: -2172173.7151194704, + y: 4338939.023235937, + z: 4126469.4107743693, + }, + ]; + let LineInterpolation = earthCtrl.core.LineInterpolation(earthCtrl.coreMap, { + positions: position, + num: 50, + getHeight: true, + }); + + let min = LineInterpolation.height; + let max = min.map((item) => { + return item + 50; + }); + + let _TrailLine = earthCtrl.factory.createTrailLineWall( + LineInterpolation.positions, + { + maximumHeights: max, + minimumHeights: Array(max.length).fill(0), + color: "#ffffff", //绾块鑹诧紙鍙�夛級 + url: "/CimSDK/Workers/image/colors3.png", + } + ); + TrailLine.push(_TrailLine); +} +// function showLine() { +// earthCtrl.factory.createSimpleGraphic( +// "polyline", +// { clampToGround: true }, +// (entity) => { +// if (entity) { +// const position = [ +// { +// x: -2172540.8322597803, +// y: 4339064.62665997, +// z: 4126183.3895281963, +// }, +// { +// x: -2172480.18394144, +// y: 4339033.15167176, +// z: 4126240.9529584926, +// }, +// { +// x: -2172454.114348403, +// y: 4339020.0398392705, +// z: 4126261.946960697, +// }, +// { +// x: -2172377.9670952093, +// y: 4338976.609385458, +// z: 4126333.862357211, +// }, +// { +// x: -2172299.4142002705, +// y: 4338951.971578909, +// z: 4126397.5205803993, +// }, +// { +// x: -2172245.1703274297, +// y: 4338940.86037857, +// z: 4126436.276389208, +// }, +// { +// x: -2172176.7332184147, +// y: 4338930.525741544, +// z: 4126477.629952572, +// }, +// { +// x: -2172173.8151051304, +// y: 4338939.043883864, +// z: 4126469.336927342, +// }, +// { +// x: -2172173.7151194704, +// y: 4338939.023235937, +// z: 4126469.4107743693, +// }, +// ]; +// // console.log("positions", positions); +// addWall(position, [entity]); + +// earthCtrl.factory.SimpleGraphic.remove(entity.id); +// } +// } +// ); +// } function timeUpdate(percentage) { if (percentage > 99) { if (showDebuffDetail.value) { @@ -84,7 +218,7 @@ checkedKeys.value = ["閬块櫓鐐�"]; showDebuffDetail.value = true; getTimeMarkers(); - + showLine(); } } function openDetail() { -- Gitblit v1.9.3