MTOfflineRegionDefinition

@Serializable(with = MTOfflineRegionDefinitionSerializer::class)
data class MTOfflineRegionDefinition(val geometry: MTOfflineRegionGeometry, val minZoom: Int, val maxZoom: Int, val referenceStyle: MTMapReferenceStyle, val styleVariant: MTMapStyleVariant? = null, val pixelRatio: Float = 1.0f, val maxTileCount: Int? = null, val padding: Double? = null)

Defines a region for offline download.

Constructors

constructor(bbox: MTBoundingBox, minZoom: Int, maxZoom: Int, referenceStyle: MTMapReferenceStyle, styleVariant: MTMapStyleVariant? = null, pixelRatio: Float = 1.0f, maxTileCount: Int? = null, padding: Double? = null)

Secondary constructor for bounding box.

constructor(geometry: MTOfflineRegionGeometry, minZoom: Int, maxZoom: Int, referenceStyle: MTMapReferenceStyle, styleVariant: MTMapStyleVariant? = null, pixelRatio: Float = 1.0f, maxTileCount: Int? = null, padding: Double? = null)

Properties

The bounding box of the region.

The geometry of the region.

val maxTileCount: Int? = null

The maximum number of tiles allowed for this region.

The maximum zoom level.

The minimum zoom level.

val padding: Double? = null

An optional buffer in meters to add around the geometry for map interaction and tile fetching.

val pixelRatio: Float = 1.0f

The device pixel ratio.

The reference style for the map.

The optional style variant.