com.maptiler.maptilersdk.map.options

Types

@Serializable
class MTCameraOptions

Options for controlling the desired location, zoom, bearing, and pitch of the camera.

@Serializable
data class MTDragPanOptions(val linearity: Double? = null, val maxSpeed: Double? = null, val deceleration: Double? = null)
@Serializable
class MTFlyToOptions

Options describing the destination and animation of the transition.

class MTHalo(val scale: Double? = null, val stops: List<MTHaloStop>? = null)

Halo (atmospheric glow) configuration for the globe.

@Serializable(with = MTHaloOptionSerializer::class)
sealed class MTHaloOption

Union wrapper for halo option: can be a simple enable flag or a full config object.

data class MTHaloStop(val position: Double, val color: String)

A single halo gradient stop at a normalized distance with a CSS color string.

@Serializable
data class MTPaddingOptions(val left: Double, val top: Double, val right: Double, val bottom: Double)

Options for setting padding on calls to map methods.

@Serializable
class MTSpace

Space configuration for customizing the globe background (deep space/skybox effects). Requires globe projection to be visible.

@Serializable
class MTSpaceFaces(val pX: String, val nX: String, val pY: String, val nY: String, val pZ: String, val nZ: String)

Definition of a cubemap using explicit face URLs.

@Serializable(with = MTSpaceOptionSerializer::class)
sealed class MTSpaceOption

Union wrapper for space option: can be a simple enable flag or a full config object.

@Serializable
class MTSpacePath(val baseUrl: String, val format: String? = null)

Definition of a cubemap path. Client must provide a base URL; files are expected to be named px, nx, py, ny, pz, nz with the specified format.

@Serializable
enum MTSpacePreset : Enum<MTSpacePreset>

Predefined space cubemap presets.