Builder

class Builder(val sourceId: String)

Builder for RasterArraySource.

Parameters

sourceId

the ID of the source

Constructors

Link copied to clipboard
fun Builder(sourceId: String)

Functions

Link copied to clipboard

Contains an attribution to be displayed when the map is shown to a user.

Link copied to clipboard
fun bounds(value: List<Double> = listOf(-180.0, -85.051129, 180.0, 85.051129)): RasterArraySource.Builder

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]. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL. Default value: -180,-85.051129,180,85.051129.

Link copied to clipboard

Build the RasterArraySource.

Link copied to clipboard

Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels. Default value: 22.

Link copied to clipboard

Minimum zoom level for which tiles are available, as in the TileJSON spec. Default value: 0.

Link copied to clipboard

This property defines a source-specific resource budget, either in tile units or in megabytes. Whenever the tile cache goes over the defined limit, the least recently used tile will be evicted from the in-memory cache. Note that the current implementation does not take into account resources allocated by the visible tiles.

Link copied to clipboard

An array of one or more tile source URLs, as in the TileJSON spec. Required if url is not provided.

Link copied to clipboard

Add a TileSet to the Source.

fun tileSet(tilejson: String, tiles: List<String>, block: TileSet.Builder.() -> Unit): RasterArraySource.Builder

Add a TileSet to the Source, using DSL.

Link copied to clipboard

The minimum visual size to display tiles for this layer. Only configurable for raster layers. Default value: 512.

Link copied to clipboard

A URL to a TileJSON resource. Supported protocols are http:, https:, and mapbox://<Tileset ID>. Required if tiles is not provided.

Properties

Link copied to clipboard