ClassTelerikMap
Telerik UI Map component. Children: MapLayers, MapControls.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikMap : DataVizComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentDataVizComponentTelerikMap
Implements:
Inherited Members
Constructors
TelerikMap()
Declaration
public TelerikMap()
Properties
Center
The map center. Coordinates are listed as [Latitude, Longitude].
Declaration
[Parameter]
public double[] Center { get; set; }
Property Value
double[]
MaxZoom
The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
Declaration
[Parameter]
public double? MaxZoom { get; set; }
Property Value
MinSize
The size of the map in pixels at zoom level 0.
Declaration
[Parameter]
public double? MinSize { get; set; }
Property Value
MinZoom
The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
Declaration
[Parameter]
public double? MinZoom { get; set; }
Property Value
OnClick
Fires when the user clicks on the map surface (not on markers or shapes). Provides location coordinates and mouse event details for implementing custom click behaviors.
Declaration
[Parameter]
public EventCallback<MapClickEventArgs> OnClick { get; set; }
Property Value
OnMarkerClick
Fires when the user clicks on a marker displayed on the map. Provides access to the clicked marker's data item and mouse event details for handling marker interactions.
Declaration
[Parameter]
public EventCallback<MapMarkerClickEventArgs> OnMarkerClick { get; set; }
Property Value
OnPanEnd
Fires when the user completes a pan operation on the map. Use this event to respond to map position changes and update related UI elements or data.
Declaration
[Parameter]
public EventCallback<MapPanEndEventArgs> OnPanEnd { get; set; }
Property Value
OnShapeClick
Fires when the user clicks on a shape (polygon, polyline, or other vector shape) displayed on the map. Provides access to both the shape's data item and GeoJSON data for handling shape interactions.
Declaration
[Parameter]
public EventCallback<MapShapeClickEventArgs> OnShapeClick { get; set; }
Property Value
OnZoomEnd
Fires when the user completes a zoom operation on the map. Use this event to respond to zoom level changes and update related UI elements or data.
Declaration
[Parameter]
public EventCallback<MapZoomEndEventArgs> OnZoomEnd { get; set; }
Property Value
Pannable
Controls whether the user can pan the map.
WrapAround
Specifies whether the map should wrap around the east-west edges.
Declaration
[Parameter]
public bool? WrapAround { get; set; }
Property Value
bool?
Zoom
The initial zoom level.Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).The map size is derived from the zoom level and minScale options: size = (2 ^ zoom) * minSize
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
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