Class MapsLayer<TValue>
Gets or sets the layer customization for the maps control.
Implements
Inherited Members
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsLayer<TValue> : SfDataBoundComponent, ILayer
Type Parameters
Name | Description |
---|---|
TValue | represents the class name of the datasource. |
Constructors
MapsLayer()
Declaration
public MapsLayer()
Properties
AnimationDuration
Gets or sets the duration for the animation of layers in maps.
Declaration
public double AnimationDuration { get; set; }
Property Value
Type |
---|
System.Double |
ChildContent
Gets or sets the content of the UI element.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
DataSource
Gets or sets the data source for the layer. The data source can contain data that can be bound to the tooltip, marker, and bubble.
Declaration
public IEnumerable<object> DataSource { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<System.Object> |
GeometryType
Gets or sets the geometry type for the layer in maps.
Declaration
public GeometryType GeometryType { get; set; }
Property Value
Type |
---|
GeometryType |
Query
Gets or sets the query to select particular data from the shape data. This property is applicable only when the data source is created by data manager.
Declaration
public Query Query { get; set; }
Property Value
Type |
---|
Query |
ShapeData
Gets or sets the shape data for the maps to render.
Declaration
public object ShapeData { get; set; }
Property Value
Type |
---|
System.Object |
ShapeDataPath
Gets or sets the path for the shape from the shape data in maps.
Declaration
public string ShapeDataPath { get; set; }
Property Value
Type |
---|
System.String |
ShapePropertyPath
Gets or sets the path for the layers from the layer data source in maps.
Declaration
public string[] ShapePropertyPath { get; set; }
Property Value
Type |
---|
System.String[] |
Type
Gets or sets the type of the layer in maps.
Declaration
public Type Type { get; set; }
Property Value
Type |
---|
Type |
UrlTemplate
Gets or sets the template for the map using the url.
Declaration
public string UrlTemplate { get; set; }
Property Value
Type |
---|
System.String |
Visible
Gets or sets a value indicating whether or not to display the layers of maps.
Declaration
public bool Visible { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose(Boolean)
Disposes the property values during the destroy of the component that is hold up for the execution of the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |
Overrides
OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
INotifyCollectionChanged event handler to track the changes in the layer data source.
Declaration
protected override void OnObservableChange(string propertyName, object sender, bool isCollectionChanged = false, NotifyCollectionChangedEventArgs e = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Observable property name. |
System.Object | sender | Observable model object. |
System.Boolean | isCollectionChanged | Sets true if the observable collection changed. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | Changed Event Args |
Overrides
OnParametersSetAsync()
OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |