Class MapsCenterPosition
Specifies the center position of the maps.
Inherited Members
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsCenterPosition : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
MapsCenterPosition()
Declaration
public MapsCenterPosition()
Properties
ChildContent
Gets or sets the content of the UI element.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A RenderFragment that defines the content children of this component. |
Remarks
This property allows you to add custom content or components within this component's context.
Latitude
Gets or sets the latitude for the center position of maps.
Declaration
[Parameter]
public double Latitude { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double value representing the latitude of the map's center. |
Remarks
Use this property to specify the vertical position of the map's center in degrees.
Longitude
Gets or sets the longitude for the center position of maps.
Declaration
[Parameter]
public double Longitude { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double value representing the longitude of the map's center. |
Remarks
Use this property to specify the horizontal position of the map's center in degrees.
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. |