RasterSourceSpecification

Properties

Link copied to clipboard
abstract var attribution: String?

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

Link copied to clipboard
abstract var bounds: Array<Double>?

An array containing longitude and latitude of southwest and northeast corners of source's bounding box in following order: sw.lng, sw.lat, ne.lng, ne.lat. When this property is included in a source, no tiles outside of given bounds are requested by MapLibre. Defaults to -180, -85.051129, 180, 85.051129

Link copied to clipboard
abstract var maxzoom: Int?

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

Link copied to clipboard
abstract var minzoom: Int?

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

Link copied to clipboard
abstract var scheme: String?

Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed. Defaults to "xyz"

Link copied to clipboard
abstract var tiles: Array<String>?

An array of one or more tile source URLs, as in TileJSON spec.

Link copied to clipboard
abstract var tileSize: Int?

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

Link copied to clipboard
abstract var type: String

The source type: "geojson", "vector", "raster", "raster-dem", "image", or "video".

Link copied to clipboard
abstract var url: String?

A URL to a TileJSON resource. Supported protocols are http: and https:.

Link copied to clipboard
abstract var volatile: Boolean?

A setting to determine whether a source's tiles are cached locally.