ClassMapLayer
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class MapLayer : DataVizCollectionItemComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentDataVizCollectionItemComponentMapLayer
Implements:
Inherited Members
Constructors
MapLayer()
Declaration
public MapLayer()
Properties
Attribution
The attribution for the layer. Accepts valid HTML.
Declaration
[Parameter]
public string Attribution { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Data
Specifies the data of the layer.
Extent
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.
Declaration
[Parameter]
public double[] Extent { get; set; }
Property Value
double[]
LocationField
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.
Declaration
[Parameter]
public string LocationField { get; set; }
Property Value
MaxSize
The maximum symbol size for bubble layer symbols.
Declaration
[Parameter]
public double? MaxSize { get; set; }
Property Value
MaxZoom
The maximum zoom level at which to show this layer.
Declaration
[Parameter]
public double? MaxZoom { get; set; }
Property Value
MinSize
The minimum symbol size for bubble layer symbols.
Declaration
[Parameter]
public double? MinSize { get; set; }
Property Value
MinZoom
The minimum zoom level at which to show this layer.
Declaration
[Parameter]
public double? MinZoom { get; set; }
Property Value
Opacity
The the opacity for the layer.
Declaration
[Parameter]
public double? Opacity { get; set; }
Property Value
Shape
The marker shape for marker layers.
Declaration
[Parameter]
public MapMarkersShape? Shape { get; set; }
Property Value
Subdomains
A list of subdomains to use for loading tiles. Alternating between different subdomains allows more requests to be executed in parallel.
Declaration
[Parameter]
public string[] Subdomains { get; set; }
Property Value
string[]
Symbol
The default symbol for bubble layers.
Declaration
[Parameter]
public MapLayersSymbol? Symbol { get; set; }
Property Value
TileSize
The size of the image tile in pixels.
Declaration
[Parameter]
public double? TileSize { get; set; }
Property Value
TitleField
The data item field which contains the marker title. Requires the dataSource option to be set.
Declaration
[Parameter]
public string TitleField { get; set; }
Property Value
Type
The type of the layer.
Declaration
[Parameter]
public MapLayersType? Type { get; set; }
Property Value
UrlTemplate
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.
Declaration
[Parameter]
public string UrlTemplate { get; set; }
Property Value
ValueField
The value field for bubble layer symbols. The data item field should be a number.
Declaration
[Parameter]
public string ValueField { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides