layout: default title: WebTileLayer parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Layers

WebTileLayer Class

WebTileLayer provides a simple way to add non-ArcGIS Server map tiles as a layer to a map. The constructor takes a
URL template that usually follows a pattern of http://some.domain.com/{level}/{col}/{row}/ where level corresponds
to a zoom level, and column and row represent tile column and row, respectively. This pattern is not required, but
is the most common one currently on the web.
ArcGIS Maps SDK for JavaScript

public class WebTileLayer : dymaptic.GeoBlazor.Core.Components.Layers.Layer

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Layer 🡒 WebTileLayer

Derived
OpenStreetMapLayer

Properties

WebTileLayer.BlendMode Property

Blend modes are used to blend layers together to create an interesting effect in a layer, or even to produce what
seems like a new layer.

public System.Nullable<dymaptic.GeoBlazor.Core.Components.Layers.BlendMode> BlendMode { get; set; }

Property Value

System.Nullable<BlendMode>

WebTileLayer.Copyright Property

The attribution information for the layer.

public string? Copyright { get; set; }

Property Value

System.String

WebTileLayer.LayerType Property

Used internally to identify the sub type of Layer

public override string LayerType { get; }

Property Value

System.String

WebTileLayer.MaxScale Property

The maximum scale (most zoomed in) at which the layer is visible in the view.

public System.Nullable<double> MaxScale { get; set; }

Property Value

System.Nullable<System.Double>

WebTileLayer.MinScale Property

The minimum scale (most zoomed out) at which the layer is visible in the view.

public System.Nullable<double> MinScale { get; set; }

Property Value

System.Nullable<System.Double>

WebTileLayer.PortalItem Property

The portal item from which the layer is loaded.

public dymaptic.GeoBlazor.Core.Components.PortalItem? PortalItem { get; set; }

Property Value

PortalItem

WebTileLayer.RefreshInterval Property

Refresh interval of the layer in minutes.

public System.Nullable<double> RefreshInterval { get; set; }

Property Value

System.Nullable<System.Double>

WebTileLayer.SubDomains Property

A string of subDomain names where tiles are served to speed up tile retrieval. If subDomains are specified, the
UrlTemplate should include a {subDomain} place holder.

public System.Collections.Generic.IList<string>? SubDomains { get; set; }

Property Value

System.Collections.Generic.IList<System.String>

WebTileLayer.TileInfo Property

The tiling scheme information for the layer.

public dymaptic.GeoBlazor.Core.Components.Layers.TileInfo? TileInfo { get; set; }

Property Value

TileInfo

WebTileLayer.UrlTemplate Property

The url template is a string that specifies the URL of the hosted tile images to load. The url template resembles
an absolute URL but with a number of placeholder strings that the source evaluates to decide which tiles to load.

public string? UrlTemplate { get; set; }

Property Value

System.String

Remarks

The url template can follow a pattern of https://some.domain.com/{level}/{col}/{row}/ where level corresponds to a
zoom level, and column and row represent a tile column and row, respectively. It can also follow a pattern of
https://some.domain.com/{z}/{x}/{y}/ where z corresponds to a zoom level, and x and y represent a tile location
along x and y axis. The urlTemplate should contain a {subDomain} place holder if subDomains are specified.

Methods

WebTileLayer.RegisterChildComponent(MapComponent) Method

Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with it’s parent.

public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The calling, child component to register

Returns

System.Threading.Tasks.Task

Exceptions

InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.

Remarks

This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.

WebTileLayer.UnregisterChildComponent(MapComponent) Method

Undoes the “Registration” of a child with its parent.

public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The child to unregister

Returns

System.Threading.Tasks.Task

Remarks

This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.