Interface IVectorPortrayalSource
Capability implemented by vector dataset processors that can produce a Mapsui-free VectorPortrayalResult — the portrayal-output seam that lets the Mapsui renderer build the dataset's layers without the processor (and therefore the headless-facing Pipelines assembly) taking a dependency on Mapsui.
public interface IVectorPortrayalSource
Remarks
Mirrors the IHeadlessImageRenderer capability pattern: the
concrete processors implement this alongside their headless Skia path,
and the Mapsui renderer feature-tests with
processor is IVectorPortrayalSource.
Methods
BuildVectorPortrayalAsync(RenderContext?, CancellationToken)
Builds an immutable, Mapsui-free snapshot of this dataset's vector portrayal for the supplied render context. Implementations run under the processor's render gate and snapshot all mutable portrayal state (palette, ECDIS display, asset pre-warm) so the result is safe to convert to Mapsui layers off the gate.
Task<VectorPortrayalResult> BuildVectorPortrayalAsync(RenderContext? context = null, CancellationToken cancellationToken = default)
Parameters
contextRenderContextOptional render context (palette, scales, ECDIS, mariner).
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<VectorPortrayalResult>
The Mapsui-free vector portrayal result.