ComputedSourceOptions

constructor(minZoom: Int = SourceDefaults.MIN_ZOOM, maxZoom: Int = SourceDefaults.MAX_ZOOM, buffer: Int = 128, tolerance: Float = 0.375f, clip: Boolean = false, 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.