Use SVG marker icons

This commit is contained in:
Timothy Armes
2023-07-19 16:19:29 +02:00
parent 4fe1318893
commit cbec69396d
22 changed files with 17 additions and 15 deletions
+2 -3
View File
@@ -238,10 +238,10 @@ export default function TournamentMap() {
const childCount = cluster.getChildCount();
const children = cluster.getAllChildMarkers();
// We added the time control to the icon options when creating the marker
// We added the time control as the class name when creating the marker
const timeControlCounts = countBy(
children,
(child: any) => child.options.icon.options.timeControl,
(child: any) => child.options.icon.options.className,
);
const html = `
@@ -289,7 +289,6 @@ export default function TournamentMap() {
}}
key={groupId}
tournamentGroup={tournamentGroup}
colour={colours[timeControl]}
/>
);
}),