Class MapsLayerBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
MapsLayerBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class MapsLayerBuilder : ControlBuilder
Constructors
MapsLayerBuilder()
Declaration
public MapsLayerBuilder()
MapsLayerBuilder(List<MapsLayer>)
Declaration
public MapsLayerBuilder(List<MapsLayer> collection)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<MapsLayer> |
collection |
|
Methods
Add()
Declaration
AnimationDuration(Double)
Gets or sets the duration of the animation of layers when the zooming is performed in maps.
Declaration
public MapsLayerBuilder AnimationDuration(double animationDuration)
Parameters
Type |
Name |
Description |
System.Double |
animationDuration |
|
Returns
BubbleSettings(Action<MapsBubbleBuilder>)
Declaration
public MapsLayerBuilder BubbleSettings(Action<MapsBubbleBuilder> bubbleSettings)
Parameters
Returns
BubbleSettings(List<MapsBubble>)
Gets or sets the options for customizing the bubbles in maps.
Declaration
public MapsLayerBuilder BubbleSettings(List<MapsBubble> bubbleSettings)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<MapsBubble> |
bubbleSettings |
|
Returns
DataLabelSettings(MapsDataLabelSettings)
Gets or sets the options for customizing the data labels in maps.
Declaration
public MapsLayerBuilder DataLabelSettings(MapsDataLabelSettings dataLabelSettings)
Parameters
Returns
DataLabelSettings(Action<MapsDataLabelSettingsBuilder>)
Declaration
public MapsLayerBuilder DataLabelSettings(Action<MapsDataLabelSettingsBuilder> dataLabelSettings)
Parameters
Returns
DataSource(Action<DataManagerBuilder>)
Declaration
public MapsLayerBuilder DataSource(Action<DataManagerBuilder> dataSource)
Parameters
Type |
Name |
Description |
System.Action<Syncfusion.EJ2.DataManagerBuilder> |
dataSource |
|
Returns
DataSource(Object)
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 MapsLayerBuilder DataSource(object dataSource)
Parameters
Type |
Name |
Description |
System.Object |
dataSource |
|
Returns
GeometryType(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 MapsLayerBuilder GeometryType(GeometryType geometryType)
Parameters
Returns
HighlightSettings(MapsHighlightSettings)
Gets or sets the options for customizing the shapes when the mouse hovers over maps.
Declaration
public MapsLayerBuilder HighlightSettings(MapsHighlightSettings highlightSettings)
Parameters
Returns
HighlightSettings(Action<MapsHighlightSettingsBuilder>)
Declaration
public MapsLayerBuilder HighlightSettings(Action<MapsHighlightSettingsBuilder> highlightSettings)
Parameters
Returns
InitialShapeSelection(Action<MapsInitialShapeSelectionBuilder>)
Declaration
public MapsLayerBuilder InitialShapeSelection(Action<MapsInitialShapeSelectionBuilder> initialShapeSelection)
Parameters
Returns
InitialShapeSelection(List<MapsInitialShapeSelection>)
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 MapsLayerBuilder InitialShapeSelection(List<MapsInitialShapeSelection> initialShapeSelection)
Parameters
Returns
MarkerClusterSettings(MapsMarkerClusterSettings)
Gets or sets the options for customizing the cluster of markers in maps.
Declaration
public MapsLayerBuilder MarkerClusterSettings(MapsMarkerClusterSettings markerClusterSettings)
Parameters
Returns
MarkerClusterSettings(Action<MapsMarkerClusterSettingsBuilder>)
Declaration
public MapsLayerBuilder MarkerClusterSettings(Action<MapsMarkerClusterSettingsBuilder> markerClusterSettings)
Parameters
Returns
MarkerSettings(Action<MapsMarkerBuilder>)
Declaration
public MapsLayerBuilder MarkerSettings(Action<MapsMarkerBuilder> markerSettings)
Parameters
Returns
MarkerSettings(List<MapsMarker>)
Gets or sets the options for customizing the markers in maps.
Declaration
public MapsLayerBuilder MarkerSettings(List<MapsMarker> markerSettings)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<MapsMarker> |
markerSettings |
|
Returns
NavigationLineSettings(Action<MapsNavigationLineBuilder>)
Declaration
public MapsLayerBuilder NavigationLineSettings(Action<MapsNavigationLineBuilder> navigationLineSettings)
Parameters
Returns
NavigationLineSettings(List<MapsNavigationLine>)
Gets or sets the options for customizing the navigation lines in maps.
Declaration
public MapsLayerBuilder NavigationLineSettings(List<MapsNavigationLine> navigationLineSettings)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<MapsNavigationLine> |
navigationLineSettings |
|
Returns
PolygonSettings(MapsPolygonSettings)
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 MapsLayerBuilder PolygonSettings(MapsPolygonSettings polygonSettings)
Parameters
Returns
PolygonSettings(Action<MapsPolygonSettingsBuilder>)
Declaration
public MapsLayerBuilder PolygonSettings(Action<MapsPolygonSettingsBuilder> polygonSettings)
Parameters
Returns
Query(String)
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 MapsLayerBuilder Query(string query)
Parameters
Type |
Name |
Description |
System.String |
query |
|
Returns
SelectionSettings(MapsSelectionSettings)
Gets or sets the options for customizing the shapes when clicking on the shapes in maps.
Declaration
public MapsLayerBuilder SelectionSettings(MapsSelectionSettings selectionSettings)
Parameters
Returns
SelectionSettings(Action<MapsSelectionSettingsBuilder>)
Declaration
public MapsLayerBuilder SelectionSettings(Action<MapsSelectionSettingsBuilder> selectionSettings)
Parameters
Returns
ShapeData(Object)
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 MapsLayerBuilder ShapeData(object shapeData)
Parameters
Type |
Name |
Description |
System.Object |
shapeData |
|
Returns
ShapeDataPath(String)
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 MapsLayerBuilder ShapeDataPath(string shapeDataPath)
Parameters
Type |
Name |
Description |
System.String |
shapeDataPath |
|
Returns
ShapePropertyPath(Object)
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 MapsLayerBuilder ShapePropertyPath(object shapePropertyPath)
Parameters
Type |
Name |
Description |
System.Object |
shapePropertyPath |
|
Returns
ShapePropertyPath(String)
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 MapsLayerBuilder ShapePropertyPath(string shapePropertyPath)
Parameters
Type |
Name |
Description |
System.String |
shapePropertyPath |
|
Returns
ShapePropertyPath(String[])
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 MapsLayerBuilder ShapePropertyPath(string[] shapePropertyPath)
Parameters
Type |
Name |
Description |
System.String[] |
shapePropertyPath |
|
Returns
ShapeSettings(MapsShapeSettings)
Gets or sets the options to customize the shape of the maps.
Declaration
public MapsLayerBuilder ShapeSettings(MapsShapeSettings shapeSettings)
Parameters
Returns
ShapeSettings(Action<MapsShapeSettingsBuilder>)
Declaration
public MapsLayerBuilder ShapeSettings(Action<MapsShapeSettingsBuilder> shapeSettings)
Parameters
Returns
ToggleLegendSettings(Object)
Gets or sets the options for customizing the toggle state of shapes when selecting the legend in maps.
Declaration
public MapsLayerBuilder ToggleLegendSettings(object toggleLegendSettings)
Parameters
Type |
Name |
Description |
System.Object |
toggleLegendSettings |
|
Returns
Gets or sets the options for customizing the tooltip of the layers in maps.
Declaration
public MapsLayerBuilder TooltipSettings(MapsTooltipSettings tooltipSettings)
Parameters
Returns
Declaration
public MapsLayerBuilder TooltipSettings(Action<MapsTooltipSettingsBuilder> tooltipSettings)
Parameters
Returns
Type(Type)
Gets or sets the type of the layer in maps. There are two types: Layer and SubLayer.
Declaration
public MapsLayerBuilder Type(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
UrlTemplate(String)
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 MapsLayerBuilder UrlTemplate(string urlTemplate)
Parameters
Type |
Name |
Description |
System.String |
urlTemplate |
|
Returns
Visible(Boolean)
Enables or disables the visibility of the layers in maps.
Declaration
public MapsLayerBuilder Visible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Returns