| | 1 | | <g @onclick="LogOnClick"> |
| | 2 | | <path d="@Country.Path" fill="@FillColor" fill-opacity="1" stroke="none" stroke-width="0.4" stroke-opacity="1" fill- |
| | 3 | | <path d="@Country.Path" data-code="BD" fill="transparent" stroke="transparent" stroke-width="0" fill-rule="evenodd" |
| | 4 | | </g> |
| | 5 | | @code { |
| | 6 | | public const string DefaultFillColor = "#455A64"; |
| | 7 | |
|
| 0 | 8 | | [Parameter] public string FillColor { get; set; } = "#455A64"; |
| | 9 | |
|
| 0 | 10 | | [Parameter] public VectorMapCountry Country { get; set; } |
| | 11 | |
|
| | 12 | | private string Path; |
| | 13 | |
|
| | 14 | | private void LogOnClick() |
| 0 | 15 | | { |
| 0 | 16 | | Console.WriteLine($"Clicked on {Country.Name}"); |
| | 17 | |
|
| 0 | 18 | | } |
| | 19 | | } |