Builder

open class Builder(tilejson: String, tiles: List<String>)

Builder for TileSet.

Constructors

Builder
Link copied to clipboard
fun Builder(tilejson: String, tiles: List<String>)

Functions

attribution
Link copied to clipboard
fun attribution(value: String): TileSet.Builder
Default: null.
bounds
Link copied to clipboard
fun bounds(value: List<Double> = listOf(-180.0, -90.0, 180.0, 90.0)): TileSet.Builder
Default: -180, -90, 180, 90.
build
Link copied to clipboard
fun build(): TileSet
Build the TileSet.
center
Link copied to clipboard
fun center(value: List<Double>): TileSet.Builder
The first value is the longitude, the second is latitude (both in WGS:84 values), the third value is the zoom level as an integer.
data
Link copied to clipboard
fun data(value: List<String>): TileSet.Builder
An array of data files in GeoJSON format.
description
Link copied to clipboard
fun description(value: String): TileSet.Builder
A text description of the tileset.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
grids
Link copied to clipboard
fun grids(value: List<String>): TileSet.Builder
An array of interactivity endpoints.
hashCode
Link copied to clipboard
open fun hashCode(): Int
legend
Link copied to clipboard
fun legend(value: String): TileSet.Builder
Contains a legend to be displayed with the map.
maxZoom
Link copied to clipboard
fun maxZoom(value: Int = 30): TileSet.Builder
Default to 30.
minZoom
Link copied to clipboard
fun minZoom(value: Int = 0): TileSet.Builder
Default to 0.
name
Link copied to clipboard
fun name(value: String): TileSet.Builder
A name describing the tileset.
scheme
Link copied to clipboard
fun scheme(value: Scheme): TileSet.Builder
Default: "xyz".
template
Link copied to clipboard
fun template(value: String): TileSet.Builder
Contains a mustache template to be used to format data from grids for interaction.
toString
Link copied to clipboard
open fun toString(): String
version
Link copied to clipboard
fun version(value: String = "1.0.0"): TileSet.Builder
Default: "1.0.0".

Properties

tilejson
Link copied to clipboard
val tilejson: String
tiles
Link copied to clipboard
val tiles: List<String>

Inheritors

TileSet
Link copied to clipboard