diff --git a/src/FunderMaps.Core/Entities/Mapset.cs b/src/FunderMaps.Core/Entities/Mapset.cs index df1fcda9..af96708e 100644 --- a/src/FunderMaps.Core/Entities/Mapset.cs +++ b/src/FunderMaps.Core/Entities/Mapset.cs @@ -54,6 +54,11 @@ public sealed class Mapset : IEntityIdentifier /// public string? Note { get; set; } + /// + /// Icon. + /// + public string? Icon { get; set; } + /// /// Unique identifier. /// diff --git a/src/FunderMaps.Data/Repositories/MapsetRepository.cs b/src/FunderMaps.Data/Repositories/MapsetRepository.cs index 66dfc0f4..27b834bb 100644 --- a/src/FunderMaps.Data/Repositories/MapsetRepository.cs +++ b/src/FunderMaps.Data/Repositories/MapsetRepository.cs @@ -28,6 +28,7 @@ public async Task GetPublicAsync2(Guid id) m.public, m.consent, m.note, + m.icon, NULL as fence_municipality, ( SELECT jsonb_agg(maplayers.layer) @@ -68,6 +69,7 @@ public async IAsyncEnumerable GetByOrganizationIdAsync2(Guid id) m.public, m.consent, m.note, + m.icon, o.fence_municipality, ( SELECT jsonb_agg(maplayers.layer) diff --git a/src/FunderMaps.WebApi/Controllers/GeocoderController.cs b/src/FunderMaps.WebApi/Controllers/GeocoderController.cs index 14961c3e..3683947c 100644 --- a/src/FunderMaps.WebApi/Controllers/GeocoderController.cs +++ b/src/FunderMaps.WebApi/Controllers/GeocoderController.cs @@ -5,6 +5,7 @@ namespace FunderMaps.WebApi.Controllers; +// TODO: Move public sealed class GeocoderInfo { public Building Building { get; set; } = default!;