From c40500d288339cd9b2200f8f909e3cd5471c0c22 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 30 八月 2024 17:38:29 +0800 Subject: [PATCH] 1. 优化3D动画中风向的变化逻辑; 2. 修复折线图切换因子时,数据直接跳转至起始处的问题; 3. 折线图和表格加回风向因子; 4. 优化风向的均值计算为矢量计算,同时最大最小值不显示; 5. 新增表格数据导出功能; --- src/utils/map/marks.js | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/utils/map/marks.js b/src/utils/map/marks.js index ed0c807..ba31891 100644 --- a/src/utils/map/marks.js +++ b/src/utils/map/marks.js @@ -3,8 +3,6 @@ */ import { map } from './index_old'; -import sector from './sector'; -import { DialogUtil } from './dialog'; import { useToolboxStore } from '@/stores/toolbox'; const toolboxStore = useToolboxStore(); @@ -21,10 +19,7 @@ if (!toolboxStore.dataMarkerStatus) { return; } - if (_massMarks) { - map.remove(_massMarks); - _massMarks = undefined; - } + this.clearMassMarks(); const lnglats = fDatas.lnglats_GD; var data = []; for (let i = 0; i < lnglats.length; i++) { @@ -77,6 +72,12 @@ _massMarks = massMarks; map.add(massMarks); }, + clearMassMarks() { + if (_massMarks) { + map.remove(_massMarks); + _massMarks = undefined; + } + }, createLabelMarks(img, dataList) { // eslint-disable-next-line no-undef @@ -105,7 +106,7 @@ image: img, // clipOrigin: [14, 92], // clipSize: [50, 68], - size: [24, 24], + size: [30, 30], anchor: 'bottom-center', angel: 0, retina: true @@ -115,12 +116,12 @@ direction: 'top', offset: [0, -5], style: { - fontSize: 15, + fontSize: 16, fontWeight: 'normal', fillColor: '#fff', strokeColor: '#333', - strokeWidth: 2 - // backgroundColor: '#b1009b' + strokeWidth: 0, + backgroundColor: '#122b54a9' } } }; -- Gitblit v1.9.3