menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MapsColorMapping - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MapsColorMapping

    Sets and gets the color-mapping for the maps control.

    Inheritance
    System.Object
    MapsColorMapping
    MapsBubbleColorMapping
    MapsShapeColorMapping
    Namespace: Syncfusion.Blazor.Maps
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MapsColorMapping : OwningComponentBase

    Constructors

    MapsColorMapping()

    Declaration
    public MapsColorMapping()

    Properties

    Color

    Gets or sets the color for the color-mapping in maps.

    Declaration
    public string[] Color { get; set; }
    Property Value
    Type Description
    System.String[]

    An array of System.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
    public Nullable<double> EndRange { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    A nullable System.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
    public string Label { get; set; }
    Property Value
    Type Description
    System.String

    A System.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
    public double MaxOpacity { get; set; }
    Property Value
    Type Description
    System.Double

    A System.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
    public double MinOpacity { get; set; }
    Property Value
    Type Description
    System.Double

    A System.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
    public bool ShowLegend { get; set; }
    Property Value
    Type Description
    System.Boolean

    A System.Boolean indicating the visibility of legends. The default value is true.

    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
    public Nullable<double> StartRange { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    A nullable System.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
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    A System.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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved