Skip to content

MapTool

Namespace: ThinkGeo.UI.Blazor

Provides the base functionality shared by interactive map tools rendered inside a .

public abstract class MapTool : Microsoft.AspNetCore.Components.ComponentBase, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender

Inheritance Object → ComponentBase → MapTool
Implements IComponent, IHandleEvent, IHandleAfterRender

Properties

Id

Gets or sets the unique identifier used to track this tool. Defaults to a new GUID.

public string Id { get; set; }

Property Value

String

Methods

InitAsync()

Performs any client or server initialization required by the tool. The base implementation completes immediately.

protected Task InitAsync()

Returns

Task
A task that represents the asynchronous initialization workflow.

OnAfterRenderAsync(Boolean)

Ensures the tool is initialized after rendering and then defers to the base Blazor lifecycle implementation.

protected Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender Boolean
Indicates whether this is the first time the component has been rendered.

Returns

Task
A task that completes when initialization and base processing are finished.