Skip to content

AdornmentOverlay

Namespace: ThinkGeo.UI.Blazor

public class AdornmentOverlay : Overlay, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender, System.IDisposable, System.IAsyncDisposable

Inheritance object → ComponentBase → Overlay → AdornmentOverlay
Implements IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IAsyncDisposable

Properties

Layers

A collection of

public GeoCollection<AdornmentLayer> Layers { get; set; }

Property Value

GeoCollection<AdornmentLayer>

RedrawWhileMoving

Redraws the adornments while the map is moving. MapLibre otherwise redraws after movement ends; OpenLayers already redraws as its view changes.

public bool RedrawWhileMoving { get; set; }

Property Value

bool

Id

Gets or sets the unique identifier used to register this overlay with the map. Defaults to a new GUID.

public string Id { get; set; }

Property Value

string

IsVisible

Gets or sets a value indicating whether this overlay participates in draw requests. Defaults to true.

public bool IsVisible { get; set; }

Property Value

bool

Constructors

AdornmentOverlay()

public AdornmentOverlay()

Methods

BuildRenderTree(RenderTreeBuilder)

protected void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Returns

void

InitializeAsyncCore()

protected Task InitializeAsyncCore()

Returns

Task

ReleaseAsyncCore()

protected Task ReleaseAsyncCore()

Returns

Task

RedrawAsync()

public Task RedrawAsync()

Returns

Task

DrawCore(GeoCanvas)

This method overrides the DrawCore logic in the Overlay base class.

Draw all of the AdornmentLayers to the image object using the parameters specified.

protected void DrawCore(GeoCanvas canvas)

Parameters

canvas GeoCanvas
This parameter specifies the target canvas to draw the current AdornmentOverlay on.

Returns

void

OnAfterRenderAsync(bool)

protected Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

Returns

Task

OnInitialized()

protected void OnInitialized()

Returns

void