Interface IHonuaAdminStylesClient
Per-layer style read and update over the admin metadata API
(/api/v1/admin/metadata/layers/{layerId}/style), keyed by layerId.
public interface IHonuaAdminStylesClient
Remarks
Deprecated. This layer-keyed surface is retained only as a back-compat
alias for editing a layer's default style and may be removed in a future
major release. New code should use the canonical, styleId-keyed styles
surface (ADR-0048): Honua.Sdk.OgcFeatures.Styles.IHonuaOgcStylesClient
over /ogc/styles, which supports listing styles, content-negotiated
stylesheet encodings (MapLibre/SLD), and style metadata.
Deprecation is documented here (rather than via [Obsolete]) because the
SDK builds with TreatWarningsAsErrors, under which the CS0618
produced by [Obsolete] would break consumers that still call this
alias. This is consistent with how the alias was documented when the
styleId client was introduced.
Methods
GetLayerStyleAsync(int, CancellationToken)
Gets the style for a layer.
Task<LayerStyleResponse> GetLayerStyleAsync(int layerId, CancellationToken cancellationToken = default)
Parameters
layerIdintThe layer identifier.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<LayerStyleResponse>
The layer style response.
Remarks
Deprecated in favor of the styleId-keyed
Honua.Sdk.OgcFeatures.Styles.IHonuaOgcStylesClient.GetStylesheetAsync
for the canonical OGC API - Styles surface (ADR-0048).
UpdateLayerStyleAsync(int, LayerStyleUpdateRequest, CancellationToken)
Updates the style for a layer.
Task<LayerStyleResponse> UpdateLayerStyleAsync(int layerId, LayerStyleUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
layerIdintThe layer identifier.
requestLayerStyleUpdateRequestThe style update request.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<LayerStyleResponse>
The updated layer style response.
Remarks
Deprecated in favor of the styleId-keyed
Honua.Sdk.OgcFeatures.Styles.IHonuaOgcStylesClient.UpdateStyleAsync
for the canonical OGC API - Styles surface (ADR-0048).