MapTool¶
Namespace: ThinkGeo.UI.Blazor
Provides the base functionality shared by interactive map tools rendered inside a ThinkGeo.UI.Blazor.MapTool.MapView.
public abstract class MapTool : Microsoft.AspNetCore.Components.ComponentBase, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender, System.IDisposable
Inheritance object → ComponentBase → MapTool
Implements IComponent, IHandleEvent, IHandleAfterRender, IDisposable
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¶
JSRuntime¶
Gets the JavaScript runtime associated with the containing ThinkGeo.UI.Blazor.MapTool.MapView.
protected IJSRuntime JSRuntime { get; }
Property Value¶
IJSRuntime
MapView¶
protected MapView MapView { get; set; }
Property Value¶
RendererInfo¶
protected RendererInfo RendererInfo { get; }
Property Value¶
RendererInfo
Assets¶
protected ResourceAssetCollection Assets { get; }
Property Value¶
ResourceAssetCollection
AssignedRenderMode¶
protected IComponentRenderMode AssignedRenderMode { get; }
Property Value¶
IComponentRenderMode
Constructors¶
MapTool()¶
protected MapTool()
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(bool)¶
Ensures the tool is initialized after rendering and then defers to the base Blazor lifecycle implementation.
protected Task OnAfterRenderAsync(bool firstRender)
Parameters¶
firstRender bool
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.
Dispose()¶
public void Dispose()