ComputedSourceOptions

@Immutable
data class ComputedSourceOptions(val minZoom: Int = SourceDefaults.MIN_ZOOM, val maxZoom: Int = SourceDefaults.MAX_ZOOM, val buffer: Int = 128, val tolerance: Float = 0.375f, val clip: Boolean = false, val wrap: Boolean = false)(source)

Parameters

minZoom

Minimum zoom level at which to create vector tiles (lower means more field of view detail at low zoom levels).

maxZoom

Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels).

buffer

Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges at the cost of slower performance.

tolerance

Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance).

clip

If the data includes geometry outside the tile boundaries, setting this to true clips the geometry to the tile boundaries.

wrap

If the data includes wrapped coordinates, setting this to true unwraps the coordinates.

Constructors

Link copied to clipboard
constructor(minZoom: Int = SourceDefaults.MIN_ZOOM, maxZoom: Int = SourceDefaults.MAX_ZOOM, buffer: Int = 128, tolerance: Float = 0.375f, clip: Boolean = false, wrap: Boolean = false)

Properties

Link copied to clipboard
val buffer: Int = 128
Link copied to clipboard
val clip: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tolerance: Float = 0.375f
Link copied to clipboard
val wrap: Boolean = false