diff --git a/Arma3TacMapWebApp/Arma3TacMapWebApp.csproj b/Arma3TacMapWebApp/Arma3TacMapWebApp.csproj index 0d54719..b1731ed 100644 --- a/Arma3TacMapWebApp/Arma3TacMapWebApp.csproj +++ b/Arma3TacMapWebApp/Arma3TacMapWebApp.csproj @@ -18,8 +18,8 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/Arma3TacMapWebApp/Controllers/HomeController.cs b/Arma3TacMapWebApp/Controllers/HomeController.cs index e6c9d98..1f9bd13 100644 --- a/Arma3TacMapWebApp/Controllers/HomeController.cs +++ b/Arma3TacMapWebApp/Controllers/HomeController.cs @@ -11,6 +11,7 @@ using Arma3TacMapWebApp.Services.GameMapStorage.Json; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.Extensions.Logging; namespace Arma3TacMapWebApp.Controllers @@ -221,6 +222,14 @@ public async Task GameCssContent(string gameName) sb.AppendLine(); } } + if ( game.Markers != null) + { + foreach (var marker in game.Markers) + { + sb.Append($".game-icon-{marker.Name!.ToLowerInvariant()} {{ background-image: url('{marker.ImagePng}'); }}"); + sb.AppendLine(); + } + } return Content(sb.ToString(), "text/css"); } diff --git a/Arma3TacMapWebApp/Controllers/SymbolsController.cs b/Arma3TacMapWebApp/Controllers/SymbolsController.cs index b3fdec8..b76f8da 100644 --- a/Arma3TacMapWebApp/Controllers/SymbolsController.cs +++ b/Arma3TacMapWebApp/Controllers/SymbolsController.cs @@ -50,7 +50,8 @@ public async Task Png(string sidc, [FromQuery] SymbolsViewModel? Direction = ToDegrees(options?.Direction), HigherFormation = options?.HigherFormation, ReinforcedReduced = options?.ReinforcedReduced, - UniqueDesignation = options?.UniqueDesignation + UniqueDesignation = options?.UniqueDesignation, + OutlineWidth = 3 }); var stream = new MemoryStream(); symbol.SaveToPng(stream, 2); diff --git a/Arma3TacMapWebApp/Views/Home/EditMap.cshtml b/Arma3TacMapWebApp/Views/Home/EditMap.cshtml index 3af34c2..866f96a 100644 --- a/Arma3TacMapWebApp/Views/Home/EditMap.cshtml +++ b/Arma3TacMapWebApp/Views/Home/EditMap.cshtml @@ -150,123 +150,52 @@