MapLayer
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class MapLayer : DataVizCollectionItemComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentDataVizCollectionItemComponentMapLayer
Implements:
Inherited Members
Constructors
public MapLayer()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
The attribution for the layer. Accepts valid HTML.
[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.
[Parameter]
public RenderFragment ChildContent { 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.
[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.
[Parameter]
public string LocationField { get; set; }
The maximum symbol size for bubble layer symbols.
[Parameter]
public double? MaxSize { get; set; }
The maximum zoom level at which to show this layer.
[Parameter]
public double? MaxZoom { get; set; }
The minimum symbol size for bubble layer symbols.
[Parameter]
public double? MinSize { get; set; }
The minimum zoom level at which to show this layer.
[Parameter]
public double? MinZoom { get; set; }
The marker shape for marker layers.
[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.
[Parameter]
public string[] Subdomains { get; set; }
The default symbol for bubble layers.
[Parameter]
public MapLayersSymbol? Symbol { get; set; }
The size of the image tile in pixels.
[Parameter]
public double? TileSize { get; set; }
The data item field which contains the marker title. Requires the dataSource option to be set.
[Parameter]
public string TitleField { get; set; }
The type of the layer.
[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.
[Parameter]
public string UrlTemplate { get; set; }
The value field for bubble layer symbols. The data item field should be a number.
[Parameter]
public string ValueField { get; set; }