Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MapsLayer<TValue>

    Show / Hide Table of Contents

    Class MapsLayer<TValue>

    Gets or sets the layer customization for the maps control.

    Inheritance
    System.Object
    SfBaseComponent
    SfDataBoundComponent
    MapsLayer<TValue>
    Implements
    ILayer
    Inherited Members
    SfDataBoundComponent.SetDataManager<T>(Object)
    SfDataBoundComponent.OnAfterRenderAsync(Boolean)
    SfDataBoundComponent.DataManager
    SfDataBoundComponent.MainParent
    SfBaseComponent.Dispose()
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    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 Description
    System.Double

    ChildContent

    Gets or sets the content of the UI element.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    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 Description
    Query

    ShapeData

    Gets or sets the shape data for the maps to render.

    Declaration
    public object ShapeData { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    System.String[]

    Type

    Gets or sets the type of the layer in maps.

    Declaration
    public Type Type { get; set; }
    Property Value
    Type Description
    Type

    UrlTemplate

    Gets or sets the template for the map using the url.

    Declaration
    public string UrlTemplate { get; set; }
    Property Value
    Type Description
    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 Description
    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
    SfBaseComponent.Dispose(Boolean)

    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
    SfDataBoundComponent.OnInitializedAsync()

    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.

    Overrides
    SfDataBoundComponent.OnParametersSetAsync()

    Implements

    ILayer
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved