Class MapsColorMapping
Sets and gets the color-mapping for the maps control.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsColorMapping : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
MapsColorMapping()
Declaration
public MapsColorMapping()
Properties
Color
Gets or sets the color for the color-mapping in maps.
Declaration
[Parameter]
public string[] Color { get; set; }
Property Value
| Type | Description |
|---|---|
| string[] | An array of string representing the colors used for the mapping. |
Remarks
This property defines the color array used for color-mapping in the map visualization. The colors are applied based on data range or value.
EndRange
Gets or sets the value to where the range color-mapping ends.
Declaration
[Parameter]
public double? EndRange { get; set; }
Property Value
| Type | Description |
|---|---|
| double? | A nullable double indicating the ending value of the color range mapping. |
Remarks
This property marks the end of the value range that uses a specific color in the maps, effectively setting range limits.
Label
Gets or sets the label for the color-mapping from the data source in maps.
Declaration
[Parameter]
public string Label { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the label associated with the color-mapping. |
Remarks
Use this property to set a label or description that helps identify the context or purpose of the color-mapping.
MaxOpacity
Gets or sets the maximum opacity for the color-mapping in maps.
Declaration
[Parameter]
public double MaxOpacity { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double representing the maximum opacity level for color-mapping. The default value is -1. |
Remarks
This property controls the transparency of the color fill assigned to the mapping, where 1 is fully opaque and 0 is fully transparent.
MinOpacity
Gets or sets the minimum opacity for the color-mapping in maps.
Declaration
[Parameter]
public double MinOpacity { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double representing the minimum opacity level for color-mapping. The default value is -1. |
Remarks
This property specifies the lower limit of transparency for color-mapping, allowing gradation between minimum and maximum opacity.
ShowLegend
Gets or sets a value indicating whether or not to enable the visibility state of legend for the color-mapping shapes in maps.
Declaration
[Parameter]
public bool ShowLegend { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A bool indicating the visibility of legends. The default value is |
Remarks
Enable or disable the legend display for shapes related to the color-mapping. Legends help users understand which color corresponds to which value or range.
StartRange
Gets or sets the value from where the range color-mapping starts.
Declaration
[Parameter]
public double? StartRange { get; set; }
Property Value
| Type | Description |
|---|---|
| double? | A nullable double indicating the starting value of the color range mapping. |
Remarks
This property marks the beginning of the value range for which a specific color is applied in the maps.
Value
Gets or sets the value for the color-mapping from the data source.
Declaration
[Parameter]
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the specific value used for the color-mapping. |
Remarks
Assign this property to link specific data values directly to color-mappings, especially when map areas are colored based on specific criteria.