Source

abstract class Source(sourceId: String) : StyleContract.StyleSourceExtension

Base class for sources.

Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided.

Constructors

Source
Link copied to clipboard
fun Source(sourceId: String)

Types

Companion
Link copied to clipboard
object Companion

Static variables and methods.

Functions

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

Add the source to the Style.

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

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

Properties

sourceId
Link copied to clipboard
val sourceId: String

The ID of the Source.

Inheritors

GeoJsonSource
Link copied to clipboard
ImageSource
Link copied to clipboard
RasterDemSource
Link copied to clipboard
RasterSource
Link copied to clipboard
VectorSource
Link copied to clipboard