Package-level declarations

Types

Link copied to clipboard
sealed external interface GeoJsonDataDefinition
Link copied to clipboard

A GeoJSON source. Data must be provided via a "data" property, whose value can be a URL or inline GeoJSON. When using in a browser, the GeoJSON data must be on the same domain as the map or served with CORS headers.

Link copied to clipboard
external interface PromoteIdDefinition

Property to use as a feature ID (for feature state) in GeoJSONSourceSpecification or VectorSourceSpecification.

Link copied to clipboard

A raster DEM source. Only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.

Link copied to clipboard
sealed external interface SourceSpecification

Represents any source specification type.

Link copied to clipboard

A vector tile source. Tiles must be in Mapbox Vector Tile format. All geometric coordinates in vector tiles must be between -1 * extent and (extent * 2) - 1 inclusive. All layers that use a vector source must specify a source-layer value. Note that features are only rendered within their originating tile, which may lead to visual artifacts when large values for width, radius, size or offset are specified. To mitigate rendering issues, either reduce the value of the property causing the artifact or, if you have control over the tile generation process, increase the buffer size to ensure that features are fully rendered within the tile.

Link copied to clipboard

A video source. The urls value is an array. For each URL in the array, a video element source will be created. To support the video across browsers, supply URLs in multiple formats.

Functions

Link copied to clipboard
fun GeoJSONSourceSpecification(data: GeoJsonDataDefinition, cluster: Boolean? = null, clusterRadius: Int? = null, clusterMaxZoom: Int? = null, clusterMinPoints: Int? = null, maxzoom: Int? = null, attribution: String? = null, buffer: Int? = null, filter: Expression? = null, tolerance: Double? = null, clusterProperties: Json? = null, lineMetrics: Boolean? = null, generateId: Boolean? = null, promoteId: PromoteIdDefinition? = null): GeoJSONSourceSpecification
Link copied to clipboard
fun RasterDEMSourceSpecification(url: String? = null, tiles: Array<String>? = null, bounds: Array<Double>? = null, minzoom: Int? = null, maxzoom: Int? = null, tileSize: Int? = null, attribution: String? = null, encoding: String? = null, redFactor: Double? = null, blueFactor: Double? = null, greenFactor: Double? = null, baseShift: Double? = null): RasterDEMSourceSpecification
Link copied to clipboard
fun RasterSourceSpecification(url: String? = null, tiles: Array<String>? = null, bounds: Array<Double>? = null, minzoom: Int? = null, maxzoom: Int? = null, tileSize: Int? = null, scheme: String? = null, attribution: String? = null, volatile: Boolean? = null): RasterSourceSpecification
Link copied to clipboard
fun VectorSourceSpecification(url: String? = null, tiles: Array<String>? = null, bounds: Array<Double>? = null, scheme: String? = null, minzoom: Int? = null, maxzoom: Int? = null, attribution: String? = null, promoteId: PromoteIdDefinition? = null, volatile: Boolean? = null, encoding: String? = null): VectorSourceSpecification