Skip to content

LayerOverlay

Namespace: ThinkGeo.UI.Blazor

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

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

Properties

Layers

A collection of ThinkGeo.Core.Layer which need to be drawn. Layers already open are borrowed and remain open. This overlay closes only layers it opens; it never disposes caller-supplied layer or cache objects. To share a layer across overlays, the caller must open it first and keep it open until every user has detached.

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

Property Value

GeoCollection<LayerBase>

TileCache

Gets and sets a tile cache object for saving the tiles.

public RasterTileCache TileCache { get; set; }

Property Value

RasterTileCache

IsCacheOnly

Gets or sets a value indicating whether this instance is cache only.

public bool IsCacheOnly { get; set; }

Property Value

bool
true if this instance is cache only; otherwise, false.

DrawingLayers

The layer snapshot for the current draw, including across asynchronous waits.

protected IReadOnlyList<LayerBase> DrawingLayers { get; }

Property Value

IReadOnlyList<LayerBase>

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

InitializationAttempted

protected bool InitializationAttempted { get; }

Property Value

bool

CanAcceptRequests

protected bool CanAcceptRequests { get; }

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

JSRuntime

Gets the JavaScript runtime associated with the containing ThinkGeo.UI.Blazor.Overlay.MapView.

protected IJSRuntime JSRuntime { get; }

Property Value

IJSRuntime

MapView

Gets or sets the ThinkGeo.UI.Blazor.Overlay.MapView that hosts this overlay.

protected internal MapView MapView { get; set; }

Property Value

MapView

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

LayerOverlay()

public LayerOverlay()

Methods

BuildRenderTree(RenderTreeBuilder)

protected void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

DrawTile(GeoCanvas)

protected void DrawTile(GeoCanvas canvas)

Parameters

canvas GeoCanvas

DrawTileAsyncCore(GeoCanvas)

protected Task DrawTileAsyncCore(GeoCanvas canvas)

Parameters

canvas GeoCanvas

Returns

Task

RedrawAsync()

public Task RedrawAsync()

Returns

Task

InitializeAsyncCore()

protected Task InitializeAsyncCore()

Returns

Task

ReleaseAsyncCore()

protected Task ReleaseAsyncCore()

Returns

Task

OnAfterRenderAsync(bool)

protected Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

Returns

Task