New to Telerik UI for BlazorStart a free 30-day trial

Represents a data layer on the map that can display markers, shapes, or bubble visualizations. Provides a container for organizing related map content with specific rendering settings and data binding. Children: MapLayerMarkerSettings, MapLayerShapeSettings, MapLayerBubbleSettings.

Definition

Constructors

C#
public MapLayer()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

Overrides: DataVizChildComponent.Dispose(bool)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

Properties

The attribution for the layer. Accepts valid HTML.

C#
[Parameter]
public string Attribution { get; set; }

Defines the settings and configuration for how data is displayed on this map layer. Use this to specify marker settings, shape styling, or bubble visualization options for the layer's data. Children: MapLayerMarkerSettings, MapLayerShapeSettings, MapLayerBubbleSettings.

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Specifies the data of the layer.

C#
[Parameter]
public object Data { get; set; }

Specifies the extent of the region covered by this layer. The layer will be hidden when the specified area is out of view.Accepts a four-element array that specifies the extent covered by this layer: North-West lat, longitude, South-East latitude, longitude.If not specified, the layer is always visible.

C#
[Parameter]
public double[] Extent { get; set; }

The data item field which contains the marker (symbol) location. The field should be an array with two numbers - latitude and longitude in decimal degrees.Requires the dataSource option to be set.Only applicable to "marker" and "bubble" layers.

C#
[Parameter]
public string LocationField { get; set; }

The maximum symbol size for bubble layer symbols.

C#
[Parameter]
public double? MaxSize { get; set; }

The maximum zoom level at which to show this layer.

C#
[Parameter]
public double? MaxZoom { get; set; }

The minimum symbol size for bubble layer symbols.

C#
[Parameter]
public double? MinSize { get; set; }

The minimum zoom level at which to show this layer.

C#
[Parameter]
public double? MinZoom { get; set; }

The the opacity for the layer.

C#
[Parameter]
public double? Opacity { get; set; }

The marker shape for marker layers.

C#
[Parameter]
public MapMarkersShape? Shape { get; set; }

A list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to be executed in parallel.

C#
[Parameter]
public string[] Subdomains { get; set; }

The default symbol for bubble layers.

C#
[Parameter]
public MapLayersSymbol? Symbol { get; set; }

The size of the image tile in pixels.

C#
[Parameter]
public double? TileSize { get; set; }

The data item field which contains the marker title. Requires the dataSource option to be set.

C#
[Parameter]
public string TitleField { get; set; }

The type of the layer.

C#
[Parameter]
public MapLayersType? Type { get; set; }

The URL template for tile layers. Template variables: x - X coordinate of the tile; y - Y coordinate of the tile; zoom - zoom level or subdomain - Subdomain for this tile. See subdomains.

C#
[Parameter]
public string UrlTemplate { get; set; }

The value field for bubble layer symbols. The data item field should be a number.

C#
[Parameter]
public string ValueField { get; set; }

The zIndex for this layer.Layers are normally stacked in declaration order (last one is on top).

C#
[Parameter]
public double? ZIndex { get; set; }