From 660021a28de9b84b4362c171fdbbf89587f0c5af Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 13 二月 2025 17:30:50 +0800
Subject: [PATCH] 1. 修改部分bug 2. 新增2D路线轨迹绘制

---
 src/model/Legend.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/model/Legend.js b/src/model/Legend.js
index cf6d5b3..42abee3 100644
--- a/src/model/Legend.js
+++ b/src/model/Legend.js
@@ -193,6 +193,9 @@
     } else {
       colors = this._custom;
     }
+    if (colors == undefined) {
+      colors = this._legend_c['PM25'];
+    }
     let index = colors.indexOf(color);
     index--;
     if (index < 0) index = 0;

--
Gitblit v1.9.3