Class MapsLayerMarkerClusterLabelStyle
Gets or sets the options to customize the style of the text in data-labels in maps component.
Inheritance
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsLayerMarkerClusterLabelStyle : OwningComponentBase
Constructors
MapsLayerMarkerClusterLabelStyle()
Declaration
public MapsLayerMarkerClusterLabelStyle()
Properties
ChildContent
Gets or sets the content of the UI element.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment representing the child content to render inside the component. |
Remarks
Define custom content to be displayed within the component using this property.
Color
Gets or sets the color of the label in the cluster.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that defines the color of the cluster labels. |
Remarks
Use this property to set the font color of labels within the marker clusters.
FontFamily
Gets or sets the font family of the label in the cluster.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string specifying the font family used for cluster labels. |
Remarks
Use this property to define the font family for the cluster labels.
FontStyle
Gets or sets the font style of the label in the cluster.
Declaration
public string FontStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string indicating the font style to be applied to cluster labels. |
Remarks
This property allows customization of the font style for cluster label text.
FontWeight
Gets or sets the font weight of the label in the cluster.
Declaration
public string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font weight of cluster labels. |
Remarks
Modify this property to set the weight/thickness of the label fonts.
Opacity
Gets or sets the opacity of the label in the cluster.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value between 0 and 1 that determines the transparency of labels. |
Remarks
This property controls the opacity level of text labels in marker clusters.
Size
Gets or sets the size of the label in the cluster.
Declaration
public string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the font size of labels in clusters. The default is "12px". |
Remarks
This property sets the size of the text used in marker cluster labels.
Methods
Dispose(Boolean)
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 |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |
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 |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |