Builder

class Builder(sourceId: String)

Builder for RasterDemSource.

Parameters

sourceId

the ID of the source

Constructors

Builder
Link copied to clipboard
fun Builder(sourceId: String)
the ID of the source

Functions

attribution
Link copied to clipboard
fun attribution(value: String): <ERROR CLASS>
Contains an attribution to be displayed when the map is shown to a user.
bounds
Link copied to clipboard
fun bounds(value: List<Double> = listOf(-180.0, -85.051129, 180.0, 85.051129)): <ERROR CLASS>
An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: [sw.lng, sw.lat, ne.lng, ne.lat].
build
Link copied to clipboard
fun build(): RasterDemSource
Build the RasterDemSource.
encoding
Link copied to clipboard
fun encoding(value: Encoding = Encoding.MAPBOX): <ERROR CLASS>
The encoding used by this source.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
maxOverscaleFactorForParentTiles
Link copied to clipboard
fun maxOverscaleFactorForParentTiles(value: Long): <ERROR CLASS>
When a set of tiles for a current zoom level is being rendered and some of the ideal tiles that cover the screen are not yet loaded, parent tile could be used instead.
maxzoom
Link copied to clipboard
fun maxzoom(value: Long = 22L): <ERROR CLASS>
Maximum zoom level for which tiles are available, as in the TileJSON spec.
minimumTileUpdateInterval
Link copied to clipboard
fun minimumTileUpdateInterval(value: Double = 0.0): <ERROR CLASS>
Minimum tile update interval in milliseconds, which is used to throttle the tile update network requests.
minzoom
Link copied to clipboard
fun minzoom(value: Long = 0L): <ERROR CLASS>
Minimum zoom level for which tiles are available, as in the TileJSON spec.
prefetchZoomDelta
Link copied to clipboard
fun prefetchZoomDelta(value: Long = 4L): <ERROR CLASS>
When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map will first request a tile at zoom level lower than zoom - delta, but so that the zoom level is multiple of delta, in an attempt to display a full map at lower resolution as quick as possible.
tileNetworkRequestsDelay
Link copied to clipboard
fun tileNetworkRequestsDelay(value: Double = 0.0): <ERROR CLASS>
For the tiled sources, this property sets the tile network requests delay.
tileRequestsDelay
Link copied to clipboard
fun tileRequestsDelay(value: Double = 0.0): <ERROR CLASS>
For the tiled sources, this property sets the tile requests delay.
tiles
Link copied to clipboard
fun tiles(value: List<String>): <ERROR CLASS>
An array of one or more tile source URLs, as in the TileJSON spec.
tileSet
Link copied to clipboard
fun tileSet(tileSet: TileSet): <ERROR CLASS>
Add a TileSet to the Source.
fun tileSet(tilejson: String, tiles: List<String>, block: TileSet.RasterDemBuilder.() -> Unit): <ERROR CLASS>
Add a TileSet to the Source, using DSL.
tileSize
Link copied to clipboard
fun tileSize(value: Long = 512L): <ERROR CLASS>
The minimum visual size to display tiles for this layer.
toString
Link copied to clipboard
open fun toString(): String
url
Link copied to clipboard
fun url(value: String): <ERROR CLASS>
A URL to a TileJSON resource.
volatile
Link copied to clipboard
fun volatile(value: Boolean = false): <ERROR CLASS>
A setting to determine whether a source's tiles are cached locally.

Properties

sourceId
Link copied to clipboard
val sourceId: String
the ID of the source