Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

buffer
Link copied to clipboard

Tile buffer size on each side (measured in 1/512ths of a tile; higher means fewer rendering artifacts near tile edges but slower performance). Default is `128`.

open fun buffer(buffer: Short): TileOptions.Builder
build
Link copied to clipboard
open fun build(): TileOptions
clip
Link copied to clipboard

If the data includes geometry outside the tile boundaries, setting this to true clips the geometry to the tile boundaries. Default is `false`;

open fun clip(clip: Boolean): TileOptions.Builder
tileSize
Link copied to clipboard

Size of the tiles. Tile size must be a power of 2. Default is `512`.

open fun tileSize(tileSize: Short): TileOptions.Builder
tolerance
Link copied to clipboard

Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance). Default is `0.375`.

open fun tolerance(tolerance: Double): TileOptions.Builder
wrap
Link copied to clipboard

If the data includes wrapped coordinates, setting this to true unwraps the coordinates. Default is `false`;

open fun wrap(wrap: Boolean): TileOptions.Builder