layout: default title: ColorStop parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Layers

ColorStop Class

Defines a color stop used for creating a continuous color visualization in a color visual variable.
ArcGIS Maps SDK for JavaScript

public class ColorStop : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ColorStop

Constructors

ColorStop() Constructor

Parameterless constructor for using as a razor component

public ColorStop();

ColorStop(double, MapColor, string) Constructor

Constructs a new ColorStop in code with parameters

public ColorStop(double value, dymaptic.GeoBlazor.Core.Objects.MapColor color, string? label=null);

Parameters

value System.Double

Specifies the data value to map to the given color.

color MapColor

The Color used to render features with the given value.

label System.String

A string value used to label the stop along the color ramp in the Legend.

Properties

ColorStop.Color Property

The Color used to render features with the given value.

public dymaptic.GeoBlazor.Core.Objects.MapColor? Color { get; set; }

Property Value

MapColor

ColorStop.Label Property

A string value used to label the stop along the color ramp in the Legend.

public string? Label { get; set; }

Property Value

System.String

ColorStop.Value Property

Specifies the data value to map to the given color.

public System.Nullable<double> Value { get; set; }

Property Value

System.Nullable<System.Double>