com.maptiler.maptilersdk.map.style

Types

sealed class MTMapReferenceStyle

Defines purpose and guidelines on what information is displayed.

Variants of the reference styles.

class MTStyle(reference: MTMapReferenceStyle, variant: MTMapStyleVariant? = null) : MTStylable

The proxy object for the current map style.

sealed class MTStyleError : Exception

Represents the exceptions raised by the MTStyle object.

@Serializable
data class MTTerrainSpecification(val source: String, val exaggeration: Double? = null)

Specification for the 3D terrain representation.

@Serializable
enum MTTileScheme : Enum<MTTileScheme>

A scheme used for tiles.

Functions

fun MTStyle.setCircleColorStep(layerId: String, key: MTFeatureKey = MTFeatureKey.POINT_COUNT, defaultColor: Int, stops: List<Pair<Double, Int>>, includeAlpha: Boolean = false)
suspend fun MTStyle.setCircleColorStepAwait(layerId: String, key: MTFeatureKey = MTFeatureKey.POINT_COUNT, defaultColor: Int, stops: List<Pair<Double, Int>>, includeAlpha: Boolean = false)
fun MTStyle.setCircleRadiusStep(layerId: String, key: MTFeatureKey = MTFeatureKey.POINT_COUNT, defaultRadius: Double, stops: List<Pair<Double, Double>>)

Typed convenience helpers for common clustering styling patterns.

suspend fun MTStyle.setCircleRadiusStepAwait(layerId: String, key: MTFeatureKey = MTFeatureKey.POINT_COUNT, defaultRadius: Double, stops: List<Pair<Double, Double>>)
suspend fun MTStyle.setTextSizeAwait(layerId: String, size: Double)