Source

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.

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

Constructors

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

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

bindTo
Link copied to clipboard

Add the source to the Style.

open override fun bindTo(delegate: StyleManagerInterface)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard

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

open override fun toString(): String

Properties

sourceId
Link copied to clipboard

The ID of the Source.

val sourceId: String

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