Skip to content

Commit 7cb48ca

Browse files
author
Mike McDougall
committed
fix: resolve style conversion build issues
1 parent 941e13a commit 7cb48ca

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Honua.Server/Features/Styling/LayerStyleService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ public async Task<LayerStyleUpdateResult> UpdateStyleAsync(
9292
return new LayerStyleUpdateResult(LayerStyleUpdateStatus.NotFound, null, null);
9393
}
9494

95-
var drawingInfoJson = MapLibreToGeoServicesConverter.Convert(normalized, layer);
96-
_ = await _styleCatalog.SetDrawingInfoAsync(layer.Id, drawingInfoJson, cancellationToken).ConfigureAwait(false);
95+
var generatedDrawingInfoJson = MapLibreToGeoServicesConverter.Convert(normalized, layer);
96+
_ = await _styleCatalog.SetDrawingInfoAsync(layer.Id, generatedDrawingInfoJson, cancellationToken).ConfigureAwait(false);
9797

9898
return new LayerStyleUpdateResult(
9999
LayerStyleUpdateStatus.Updated,
100100
new LayerStyleSnapshot(
101101
StyleJsonUtilities.ParseJsonElement(normalized),
102-
StyleJsonUtilities.ParseJsonElement(drawingInfoJson)),
102+
StyleJsonUtilities.ParseJsonElement(generatedDrawingInfoJson)),
103103
null);
104104
}
105105

src/Honua.Server/Features/Styling/MapLibreToGeoServicesConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private static bool TryBuildPictureMarkerDrawingInfo(
293293
GeometryType geometryType,
294294
string field,
295295
StyleColor baseColor,
296-
IReadOnlyList<ClassBreakStop> stops,
296+
List<ClassBreakStop> stops,
297297
double? opacity,
298298
OutlineStyle? outline,
299299
double? lineWidth,

tests/Honua.Server.Tests/Features/Styling/StyleConversionMatrixTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the Elastic License 2.0. See LICENSE in the project root.
33

44
using System.Globalization;
5-
using System.Linq;
65
using System.Text.Json;
76
using Honua.Core.Features.Catalog.Domain;
87
using Honua.Server.Features.Styling;
@@ -11,7 +10,7 @@
1110
namespace Honua.Server.Tests.Features.Styling;
1211

1312
/// <summary>
14-
/// Tests for Esri <-> MapLibre style conversion coverage.
13+
/// Tests for Esri to MapLibre style conversion coverage.
1514
/// </summary>
1615
[Trait("Category", "Unit")]
1716
[Trait("Component", "Styling")]

0 commit comments

Comments
 (0)