Show common country names and enlarge map marker hit area

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-15 12:47:44 +01:00
1 parent 31cef44bf3
commit 552abffd29
6 files changed
+88 -6

No files matched your search

@@ -45,9 +45,12 @@
[Parameter] public Func<string?, string?>? KeyFormatter { get; set; }
[Parameter] public Func<string?, string?, string?>? LabelFormatter { get; set; }
private string Display(TopEntry entry)
{
var key = KeyFormatter?.Invoke(entry.Key) ?? entry.Key;
return entry.Label is null ? key : $"{key} · {entry.Label}";
var label = LabelFormatter is null ? entry.Label : LabelFormatter(entry.Key, entry.Label);
return label is null ? key : $"{key} · {label}";
}
}