RasterArraySource

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
class Builder(val sourceId: String)

Builder for RasterArraySource.

Link copied to clipboard
object Companion

Static variables and methods.

Link copied to clipboard

The description of the raster data layers and the bands contained within the tiles.

Functions

Link copied to clipboard
open override fun bindTo(delegate: MapboxStyleManager)

Add the source to the Style.

Link copied to clipboard
fun maxzoom(value: Long = 22): RasterArraySource

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.

Link copied to clipboard
fun minzoom(value: Long = 0): RasterArraySource

Minimum zoom level for which tiles are available, as in the TileJSON spec.

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.

Link copied to clipboard
open override fun toString(): String

Returns a human readable string that includes the cached properties of the source.

Link copied to clipboard

A URL to a TileJSON resource. Supported protocols are http:, https:, and mapbox://<Tileset ID>.

Properties

Link copied to clipboard

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

Link copied to clipboard

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.

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.

Link copied to clipboard

Minimum zoom level for which tiles are available, as in the TileJSON spec.

Link copied to clipboard

Contains the description of the raster data layers and the bands contained within the tiles.

Link copied to clipboard

The ID of the Source.

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.

Link copied to clipboard

The minimum visual size to display tiles for this layer. Only configurable for raster layers.

Link copied to clipboard
val url: String?

A URL to a TileJSON resource. Supported protocols are http:, https:, and mapbox://<Tileset ID>.