cluster selection
This commit is contained in:
+2
-2
@@ -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]),
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user