cluster selection

This commit is contained in:
2026-07-12 11:19:16 +02:00
parent 9f1104b34f
commit 235cdacf9e
8 changed files with 107 additions and 40 deletions
+2 -2
View File
@@ -35,12 +35,12 @@ export const useMresoStore = defineStore("mresoStore", {
state.lines.features.map((l) => [l.properties!.id, l]),
);
},
clustersById(state): { [id: string]: Feature<Point> } {
clustersByCode(state): { [id: string]: Feature<Point> } {
if (!("features" in state.clusters)) {
return {};
}
return Object.fromEntries(
state.clusters.features.map((l) => [l.properties!.id, l]),
state.clusters.features.map((l) => [l.properties!.code, l]),
);
},
},