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:
1 parent
31cef44bf3
commit
552abffd29
6 files changed
+88
-6
No files matched your search
@@ -6,14 +6,20 @@
|
||||
@foreach (var country in Map.Countries)
|
||||
{
|
||||
var count = Count(country.Code);
|
||||
<path d="@country.Path" class="@($"level-{Level(count)}")"><title>@Title(country.Name, count)</title></path>
|
||||
<path d="@country.Path" class="@($"level-{Level(count)}")"><title>@Title(CountryNames.Display(country.Code, country.Name)!, count)</title></path>
|
||||
}
|
||||
@foreach (var marker in Map.Markers)
|
||||
{
|
||||
var count = Count(marker.Code);
|
||||
if (count > 0)
|
||||
{
|
||||
<circle cx="@marker.X.ToString(CultureInfo.InvariantCulture)" cy="@marker.Y.ToString(CultureInfo.InvariantCulture)" r="5" class="@($"marker level-{Level(count)}")"><title>@Title(marker.Name, count)</title></circle>
|
||||
var x = marker.X.ToString(CultureInfo.InvariantCulture);
|
||||
var y = marker.Y.ToString(CultureInfo.InvariantCulture);
|
||||
<g class="@($"marker level-{Level(count)}")">
|
||||
<title>@Title(CountryNames.Display(marker.Code, marker.Name)!, count)</title>
|
||||
<circle class="hit" cx="@x" cy="@y" r="14" />
|
||||
<circle class="dot" cx="@x" cy="@y" r="6" />
|
||||
</g>
|
||||
}
|
||||
}
|
||||
</svg>
|
||||
|
||||
Reference in new issue
Block a user