alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MapsColorMapping

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

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    MapsColorMapping
    MapsBubbleColorMapping
    MapsShapeColorMapping
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    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 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
    [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.

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved