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/index_old.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/utils/map/index_old.js b/src/utils/map/index_old.js
index dbe9f78..c296864 100644
--- a/src/utils/map/index_old.js
+++ b/src/utils/map/index_old.js
@@ -1,5 +1,8 @@
 /* eslint-disable no-undef */
 // import '@/lib/AMap';
+import { useToolboxStore } from '@/stores/toolbox';
+
+const toolboxStore = useToolboxStore();
 
 var mapInitDone = false;
 var onMapMountedEvents = [];
@@ -50,7 +53,7 @@
     viewMode: '3D', // 鍦板浘妯″紡
     resizeEnable: true,
     center: [121.6039283, 31.25295567],
-    zooms: [3, 18],
+    zooms: [0, 18],
     zoom: 14
   });
 
@@ -58,6 +61,7 @@
   satellite = new AMap.TileLayer.Satellite();
   satellite.show();
   map.add([satellite]);
+  toolboxStore.featuresStatus = true;
 
   _initControlbar();
   // _initMouseTool();
@@ -73,6 +77,7 @@
     }
   });
   map.addControl(controlbar);
+  toolboxStore.controlbarStatus = true;
 }
 
 // 榧犳爣缁樺浘鍒濆鍖�

--
Gitblit v1.9.3