地图样式新增自定义分类

This commit is contained in:
JIANG
2025-11-17 17:32:22 +08:00
parent 8dde587745
commit 55d41a127d
2 changed files with 174 additions and 11 deletions

View File

@@ -37,6 +37,7 @@ interface StyleConfig {
showLabels: boolean;
opacity: number;
adjustWidthByProperty: boolean;
customBreaks: number[];
}
interface LegendStyleConfig {
@@ -98,6 +99,7 @@ const Toolbar: React.FC<ToolbarProps> = ({ hiddenButtons, queryType }) => {
showLabels: false,
opacity: 0.9,
adjustWidthByProperty: true,
customBreaks: [],
},
legendConfig: {
layerId: "junctions",
@@ -128,6 +130,7 @@ const Toolbar: React.FC<ToolbarProps> = ({ hiddenButtons, queryType }) => {
showLabels: false,
opacity: 0.9,
adjustWidthByProperty: true,
customBreaks: [],
},
legendConfig: {
layerId: "pipes",