更新图例,处理小于零的异常数据显示

This commit is contained in:
JIANG
2025-11-14 17:49:19 +08:00
parent dd93b37685
commit 09684b2171
4 changed files with 42 additions and 22 deletions

View File

@@ -438,7 +438,6 @@ const StyleEditorPanel: React.FC<StyleEditorPanelProps> = ({
// 动态生成颜色条件表达式
const generateColorConditions = (property: string): any[] => {
const conditions: any[] = ["case"];
for (let i = 0; i < breaks.length; i++) {
// 添加条件:属性值 <= 当前断点
conditions.push(["<=", ["get", property], breaks[i]]);