Skip to content

TileOverlay

Namespace: ThinkGeo.UI.Blazor

Represents the base class for overlays that render map tiles.

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

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

Properties

IsVisible

public bool IsVisible { get; set; }

Property Value

bool

MaxExtent

Gets or sets the maximum geographic extent that the overlay can display.

public RectangleShape MaxExtent { get; set; }

Property Value

RectangleShape

TileHeight

Gets or sets the tile height, in pixels, used when requesting imagery from the client.

public int TileHeight { get; set; }

Property Value

int

TileWidth

Gets or sets the tile width, in pixels, used when requesting imagery from the client.

public int TileWidth { get; set; }

Property Value

int

WrappingMode

Gets or sets the mode that determines how tiles wrap across the world boundary.

public WrappingMode WrappingMode { get; set; }

Property Value

WrappingMode

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

Methods

OnInitialized()

Registers the overlay with the parent MapView before the component renders for the first time.

protected void OnInitialized()

Returns

void

SetParametersAsync(ParameterView)

Resets the pending-change tracking flag before applying new parameters.

public Task SetParametersAsync(ParameterView parameters)

Parameters

parameters ParameterView
Incoming set of parameters supplied by the framework.

Returns

Task
A task that completes when the base implementation finishes processing.

ShouldRender()

Determines whether Blazor should re-render the component. Tile overlays re-render only when configuration changes must be applied to the client.

protected bool ShouldRender()

Returns

bool
true when pending changes exist; otherwise, false.