menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MapsLayer - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MapsLayer

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    MapsLayer
    Namespace: Syncfusion.EJ2.Maps
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class MapsLayer : EJTagHelper

    Constructors

    MapsLayer()

    Declaration
    public MapsLayer()

    Properties

    AnimationDuration

    Gets or sets the duration of the animation of layers when the zooming is performed in maps.

    Declaration
    public double AnimationDuration { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 0

    BubbleSettings

    Gets or sets the options for customizing the bubbles in maps.

    Declaration
    public List<MapsBubble> BubbleSettings { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MapsBubble>

    The default value is null

    DataLabelSettings

    Gets or sets the options for customizing the data labels in maps.

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

    The default value is null

    DataSource

    Gets or sets the data source for the layer. The data bound to the shapes using data source can be used to display the tooltip, marker, and bubble.

    Declaration
    public object DataSource { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    GeometryType

    Gets or sets the geometry type for the layer in maps. There are two types: Geographic and Normal.

    • Geographic type renders the shape maps with geographical coordinate system.
    • Normal type renders the shape maps using default coordinate system.
    Declaration
    public GeometryType GeometryType { get; set; }
    Property Value
    Type Description
    GeometryType

    The default value is GeometryType.Geographic

    HighlightSettings

    Gets or sets the options for customizing the shapes when the mouse hovers over maps.

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

    The default value is null

    InitialShapeSelection

    Gets or sets the settings for the shapes to be selected when the maps rendering initially. The initial selection of shapes will be performed only when the selection functionality of layer is enabled.

    Declaration
    public List<MapsInitialShapeSelection> InitialShapeSelection { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MapsInitialShapeSelection>

    The default value is null

    MarkerClusterSettings

    Gets or sets the options for customizing the cluster of markers in maps.

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

    The default value is null

    MarkerSettings

    Gets or sets the options for customizing the markers in maps.

    Declaration
    public List<MapsMarker> MarkerSettings { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MapsMarker>

    The default value is null

    NavigationLineSettings

    Gets or sets the options for customizing the navigation lines in maps.

    Declaration
    public List<MapsNavigationLine> NavigationLineSettings { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<MapsNavigationLine>

    The default value is null

    PolygonSettings

    Gets or sets the properties of the polygon shapes that will be rendered on a map layer. The selection and highlight settings for polygon shapes can also be defined.

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

    The default value is null

    Query

    Gets or sets the query to select particular data from the layer data source. This property is applicable only when the data source is created by data manager.

    Declaration
    public string Query { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    SelectionSettings

    Gets or sets the options for customizing the shapes when clicking on the shapes in maps.

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

    The default value is null

    ShapeData

    Gets or sets the data for the maps to render. The data is normally JSON object with GeoJSON format that defines the shapes and geometries of the map.

    Declaration
    public object ShapeData { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    ShapeDataPath

    Gets or sets the field name from the GeoJSON data to map the shape to the data defined in the layer data source.

    Declaration
    public string ShapeDataPath { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "name"

    ShapePropertyPath

    Gets or sets the field name from the data source to map the shape to the data defined in the layer data source.

    Declaration
    public object ShapePropertyPath { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    ShapeSettings

    Gets or sets the options to customize the shape of the maps.

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

    The default value is null

    ToggleLegendSettings

    Gets or sets the options for customizing the toggle state of shapes when selecting the legend in maps.

    Declaration
    public object ToggleLegendSettings { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    TooltipSettings

    Gets or sets the options for customizing the tooltip of the layers in maps.

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

    The default value is null

    Type

    Gets or sets the type of the layer in maps. There are two types: Layer and SubLayer.

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

    The default value is Syncfusion.EJ2.Maps.Type.Layer

    UrlTemplate

    Gets or sets the URL of the online map providers. The online map providers will be rendered only when the shape data is not set and layer type is set with default value.

    Declaration
    public string UrlTemplate { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Visible

    Enables or disables the visibility of the layers in maps.

    Declaration
    public bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

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