menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class MapsMarkerBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    MapsMarkerBuilder
    Namespace: Syncfusion.EJ2.Maps
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class MapsMarkerBuilder : ControlBuilder

    Constructors

    MapsMarkerBuilder()

    Declaration
    public MapsMarkerBuilder()

    MapsMarkerBuilder(List<MapsMarker>)

    Declaration
    public MapsMarkerBuilder(List<MapsMarker> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<MapsMarker> collection

    Methods

    Add()

    Declaration
    public void Add()

    AnimationDelay(Double)

    Gets or sets the delay time for the animation in marker.

    Declaration
    public MapsMarkerBuilder AnimationDelay(double animationDelay)
    Parameters
    Type Name Description
    System.Double animationDelay
    Returns
    Type
    MapsMarkerBuilder

    AnimationDuration(Double)

    Gets or sets the duration time for animating the marker.

    Declaration
    public MapsMarkerBuilder AnimationDuration(double animationDuration)
    Parameters
    Type Name Description
    System.Double animationDuration
    Returns
    Type
    MapsMarkerBuilder

    Border(MapsBorder)

    Gets or sets the options for customizing the style properties of the border of the marker in maps.

    Declaration
    public MapsMarkerBuilder Border(MapsBorder border)
    Parameters
    Type Name Description
    MapsBorder border
    Returns
    Type
    MapsMarkerBuilder

    Border(Action<MapsBorderBuilder>)

    Declaration
    public MapsMarkerBuilder Border(Action<MapsBorderBuilder> border)
    Parameters
    Type Name Description
    System.Action<MapsBorderBuilder> border
    Returns
    Type
    MapsMarkerBuilder

    ClusterSettings(Object)

    Gets or sets the options for customizing the clustering of markers on the map. This property is used to cluster markers based on the current marker settings, and it is applied only when the allowClustering property is enabled.

    Declaration
    public MapsMarkerBuilder ClusterSettings(object clusterSettings)
    Parameters
    Type Name Description
    System.Object clusterSettings
    Returns
    Type
    MapsMarkerBuilder

    ColorValuePath(String)

    Gets or sets the field name from the marker data source based on which the color is applied for the marker.

    Declaration
    public MapsMarkerBuilder ColorValuePath(string colorValuePath)
    Parameters
    Type Name Description
    System.String colorValuePath
    Returns
    Type
    MapsMarkerBuilder

    DashArray(String)

    Gets or sets the dash-array for the marker.

    Declaration
    public MapsMarkerBuilder DashArray(string dashArray)
    Parameters
    Type Name Description
    System.String dashArray
    Returns
    Type
    MapsMarkerBuilder

    DataSource(Action<DataManagerBuilder>)

    Declaration
    public MapsMarkerBuilder DataSource(Action<DataManagerBuilder> dataSource)
    Parameters
    Type Name Description
    System.Action<Syncfusion.EJ2.DataManagerBuilder> dataSource
    Returns
    Type
    MapsMarkerBuilder

    DataSource(Object)

    Gets or sets the data source for the marker. The data source for the marker will contain latitude and longitude values to specify the location of the marker. The data source can contain data such as color, shape, and other details that can be bound to the color, shape, and tooltip of the marker.

    Declaration
    public MapsMarkerBuilder DataSource(object dataSource)
    Parameters
    Type Name Description
    System.Object dataSource
    Returns
    Type
    MapsMarkerBuilder

    EnableDrag(Boolean)

    Enables or disables marker drag and drop functionality at any location on the map.

    Declaration
    public MapsMarkerBuilder EnableDrag(bool enableDrag)
    Parameters
    Type Name Description
    System.Boolean enableDrag
    Returns
    Type
    MapsMarkerBuilder

    Fill(String)

    Gets or sets the color for the marker in maps.

    Declaration
    public MapsMarkerBuilder Fill(string fill)
    Parameters
    Type Name Description
    System.String fill
    Returns
    Type
    MapsMarkerBuilder

    Height(Double)

    Gets or sets the height of the marker in maps.

    Declaration
    public MapsMarkerBuilder Height(double height)
    Parameters
    Type Name Description
    System.Double height
    Returns
    Type
    MapsMarkerBuilder

    HeightValuePath(String)

    Gets or sets the field name from the data source that determines the marker height.

    Declaration
    public MapsMarkerBuilder HeightValuePath(string heightValuePath)
    Parameters
    Type Name Description
    System.String heightValuePath
    Returns
    Type
    MapsMarkerBuilder

    HighlightSettings(MapsHighlightSettings)

    Gets or sets the options to customize the marker when the mouse hovers over the markers in maps.

    Declaration
    public MapsMarkerBuilder HighlightSettings(MapsHighlightSettings highlightSettings)
    Parameters
    Type Name Description
    MapsHighlightSettings highlightSettings
    Returns
    Type
    MapsMarkerBuilder

    HighlightSettings(Action<MapsHighlightSettingsBuilder>)

    Declaration
    public MapsMarkerBuilder HighlightSettings(Action<MapsHighlightSettingsBuilder> highlightSettings)
    Parameters
    Type Name Description
    System.Action<MapsHighlightSettingsBuilder> highlightSettings
    Returns
    Type
    MapsMarkerBuilder

    ImageUrl(String)

    Gets or sets the URL for rendering the marker as image. This property acts as image source for all the markers in a marker settings.

    Declaration
    public MapsMarkerBuilder ImageUrl(string imageUrl)
    Parameters
    Type Name Description
    System.String imageUrl
    Returns
    Type
    MapsMarkerBuilder

    ImageUrlValuePath(String)

    Gets or sets the field name from the marker data source based on which the image source for the image type marker is got individually.

    Declaration
    public MapsMarkerBuilder ImageUrlValuePath(string imageUrlValuePath)
    Parameters
    Type Name Description
    System.String imageUrlValuePath
    Returns
    Type
    MapsMarkerBuilder

    InitialMarkerSelection(Object)

    Gets or sets the options to select the markers at the initial rendering time of the maps. The initial selection of markers will be performed only when the selection functionality of marker is enabled.

    Declaration
    public MapsMarkerBuilder InitialMarkerSelection(object initialMarkerSelection)
    Parameters
    Type Name Description
    System.Object initialMarkerSelection
    Returns
    Type
    MapsMarkerBuilder

    LatitudeValuePath(String)

    Defines the field name from the marker data source for setting latitude for a set of markers.

    Declaration
    public MapsMarkerBuilder LatitudeValuePath(string latitudeValuePath)
    Parameters
    Type Name Description
    System.String latitudeValuePath
    Returns
    Type
    MapsMarkerBuilder

    LegendText(String)

    Gets or sets the field name from the marker data source to render legend item text for the marker legend.

    Declaration
    public MapsMarkerBuilder LegendText(string legendText)
    Parameters
    Type Name Description
    System.String legendText
    Returns
    Type
    MapsMarkerBuilder

    LongitudeValuePath(String)

    Defines the field name from the marker data source for setting longitude for a set of markers.

    Declaration
    public MapsMarkerBuilder LongitudeValuePath(string longitudeValuePath)
    Parameters
    Type Name Description
    System.String longitudeValuePath
    Returns
    Type
    MapsMarkerBuilder

    Offset(Object)

    Gets or sets the offset value from which the marker must be rendered from the intended position.

    Declaration
    public MapsMarkerBuilder Offset(object offset)
    Parameters
    Type Name Description
    System.Object offset
    Returns
    Type
    MapsMarkerBuilder

    Opacity(Double)

    Gets or sets the opacity for the marker in maps.

    Declaration
    public MapsMarkerBuilder Opacity(double opacity)
    Parameters
    Type Name Description
    System.Double opacity
    Returns
    Type
    MapsMarkerBuilder

    Query(String)

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

    Declaration
    public MapsMarkerBuilder Query(string query)
    Parameters
    Type Name Description
    System.String query
    Returns
    Type
    MapsMarkerBuilder

    SelectionSettings(MapsSelectionSettings)

    Gets or sets the options to customize the marker while selecting the marker in maps.

    Declaration
    public MapsMarkerBuilder SelectionSettings(MapsSelectionSettings selectionSettings)
    Parameters
    Type Name Description
    MapsSelectionSettings selectionSettings
    Returns
    Type
    MapsMarkerBuilder

    SelectionSettings(Action<MapsSelectionSettingsBuilder>)

    Declaration
    public MapsMarkerBuilder SelectionSettings(Action<MapsSelectionSettingsBuilder> selectionSettings)
    Parameters
    Type Name Description
    System.Action<MapsSelectionSettingsBuilder> selectionSettings
    Returns
    Type
    MapsMarkerBuilder

    Shape(MarkerType)

    Gets or sets the shape of the marker in maps.

    Declaration
    public MapsMarkerBuilder Shape(MarkerType shape)
    Parameters
    Type Name Description
    MarkerType shape
    Returns
    Type
    MapsMarkerBuilder

    ShapeValuePath(String)

    Gets or sets the field name from the marker data source based on which the shape for individual markers are set.

    Declaration
    public MapsMarkerBuilder ShapeValuePath(string shapeValuePath)
    Parameters
    Type Name Description
    System.String shapeValuePath
    Returns
    Type
    MapsMarkerBuilder

    Template(String)

    Gets or sets the template for the marker to render custom elements.

    Declaration
    public MapsMarkerBuilder Template(string template)
    Parameters
    Type Name Description
    System.String template
    Returns
    Type
    MapsMarkerBuilder

    TooltipSettings(MapsTooltipSettings)

    Gets or sets the options to customize the tooltip of the marker in maps.

    Declaration
    public MapsMarkerBuilder TooltipSettings(MapsTooltipSettings tooltipSettings)
    Parameters
    Type Name Description
    MapsTooltipSettings tooltipSettings
    Returns
    Type
    MapsMarkerBuilder

    TooltipSettings(Action<MapsTooltipSettingsBuilder>)

    Declaration
    public MapsMarkerBuilder TooltipSettings(Action<MapsTooltipSettingsBuilder> tooltipSettings)
    Parameters
    Type Name Description
    System.Action<MapsTooltipSettingsBuilder> tooltipSettings
    Returns
    Type
    MapsMarkerBuilder

    Visible(Boolean)

    Enables or disables the visibility of the markers in maps.

    Declaration
    public MapsMarkerBuilder Visible(bool visible)
    Parameters
    Type Name Description
    System.Boolean visible
    Returns
    Type
    MapsMarkerBuilder

    Width(Double)

    Gets or sets the width of the marker in maps.

    Declaration
    public MapsMarkerBuilder Width(double width)
    Parameters
    Type Name Description
    System.Double width
    Returns
    Type
    MapsMarkerBuilder

    WidthValuePath(String)

    Gets or sets the field name from the data source that determines the marker width.

    Declaration
    public MapsMarkerBuilder WidthValuePath(string widthValuePath)
    Parameters
    Type Name Description
    System.String widthValuePath
    Returns
    Type
    MapsMarkerBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved