ColorScaleUpdatable

A lightweight capability interface for legend types that can update their color scale at runtime.

Implement this interface when a legend can apply a new visual color scale configuration after it has been created (e.g., in response to a style change or layer paint update).

Inheritors

Functions

Link copied to clipboard
abstract fun apply(colorScale: ColorScaleSpecification): Any

abstract fun apply(colorScale: ColorScaleOptions): Any

Applies the provided color-scale specification to the implementing legend.