Class MapsNavigationLine
Gets or sets the option for the customization of navigation-line for the maps.
Inherited Members
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsNavigationLine : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
MapsNavigationLine()
Declaration
public MapsNavigationLine()
Properties
Angle
Gets or sets the angle of the curve connecting different locations in the maps.
Declaration
[Parameter]
public double Angle { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double representing the angle in degrees. |
Remarks
This property defines the curvature of navigation lines.
ChildContent
Gets or sets the content of the UI element.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A RenderFragment representing the UI content. |
Remarks
This property allows for the inclusion of additional UI elements within the navigation line configuration.
Color
Gets or sets the color for the navigation lines in the maps.
Declaration
[Parameter]
public string Color { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the color, with a default of "black". |
Remarks
This property sets the stroke color of navigation lines.
DashArray
Gets or sets the dash-array for the navigation lines drawn in the maps.
Declaration
[Parameter]
public string DashArray { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the dash pattern. |
Remarks
Use this property to define a dash pattern for navigation lines.
Latitude
Gets or sets the latitude values for the navigation lines drawn in the maps.
Declaration
[Parameter]
public double[] Latitude { get; set; }
Property Value
| Type | Description |
|---|---|
| double[] | An array of double values representing the latitude coordinates. |
Remarks
This property specifies the starting and ending points of the navigation lines.
Longitude
Gets or sets the longitude values for the navigation lines drawn in the maps.
Declaration
[Parameter]
public double[] Longitude { get; set; }
Property Value
| Type | Description |
|---|---|
| double[] | An array of double values representing the longitude coordinates. |
Remarks
This property specifies the starting and ending points of the navigation lines.
Visible
Enables or disables the navigation lines to be drawn in the maps.
Declaration
[Parameter]
public bool Visible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A bool indicating the visibility state of the navigation lines. |
Remarks
Control the display of navigation lines using this property.
Width
Gets or sets the width of the navigation lines in maps.
Declaration
[Parameter]
public double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double representing the width, with a default of 1. |
Remarks
This property sets the thickness of the navigation lines.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Dispose(bool)
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 |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | Task representing the asynchronous operation. |
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 |
|---|---|
| Task | Task representing the asynchronous operation. |