RasterDemBuilder

class RasterDemBuilder(tilejson: String, tiles: List<String>) : TileSet.Builder

Builder of TileSet for RasterDemSource.

Constructors

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

Functions

attribution
Link copied to clipboard
fun attribution(value: String): <ERROR CLASS>
Default: null.
bounds
Link copied to clipboard
fun bounds(value: List<Double> = listOf(-180.0, -90.0, 180.0, 90.0)): <ERROR CLASS>
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>): <ERROR CLASS>
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>): <ERROR CLASS>
An array of data files in GeoJSON format.
description
Link copied to clipboard
fun description(value: String): <ERROR CLASS>
A text description of the tileset.
encoding
Link copied to clipboard
fun encoding(value: Encoding): <ERROR CLASS>
Default: "mapbox".
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
grids
Link copied to clipboard
fun grids(value: List<String>): <ERROR CLASS>
An array of interactivity endpoints.
hashCode
Link copied to clipboard
open fun hashCode(): Int
legend
Link copied to clipboard
fun legend(value: String): <ERROR CLASS>
Contains a legend to be displayed with the map.
maxZoom
Link copied to clipboard
fun maxZoom(value: Int = 30): <ERROR CLASS>
Default to 30.
minZoom
Link copied to clipboard
fun minZoom(value: Int = 0): <ERROR CLASS>
Default to 0.
name
Link copied to clipboard
fun name(value: String): <ERROR CLASS>
A name describing the tileset.
scheme
Link copied to clipboard
fun scheme(value: Scheme): <ERROR CLASS>
Default: "xyz".
template
Link copied to clipboard
fun template(value: String): <ERROR CLASS>
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"): <ERROR CLASS>
Default: "1.0.0".

Properties

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