com.maptiler.maptilersdk.colorramp

Types

@Serializable(with = MTArrayColorRampStopSerializer::class)
data class MTArrayColorRampStop(val value: Double, val color: List<Int>)

Array definition stop, encoded as [value, r, g, b, a].

Built-in color ramps available from the JS SDK.

@Serializable(with = MTColorRampSerializer::class)
class MTColorRamp

Reference to a color ramp instance.

data class MTColorRampBounds(val min: Double, val max: Double)

Bounds of a color ramp interval.

@Serializable
data class MTColorRampCanvasOptions(val horizontal: Boolean? = null, val size: Int? = null, val smooth: Boolean? = null)

Canvas strip rendering options.

@Serializable
data class MTColorRampCloneOptions(val clone: Boolean? = null)

Options controlling cloning behavior for mutating operations.

Entry point to access the built-in color ramp collection.

@Serializable
data class MTColorRampGetColorOptions(val smooth: Boolean? = null)

Options for color interpolation.

@Serializable
data class MTColorRampOptions(val min: Double? = null, val max: Double? = null, val stops: List<MTColorStop>? = null)

Options to build a color ramp.

@Serializable
data class MTColorStop(val value: Double, val color: List<Int>)

A stop in a color ramp, pairing a value with an RGBA color.