DataSource

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard
abstract val id: String

The unique identifier for the data source.

Link copied to clipboard
abstract var isReady: Boolean

Indicates whether the data source is ready to be used by consuming layers, which may be false if data has not been loaded from a remote source yet or the data has not been fully prepared for rendering.

Link copied to clipboard
abstract val kind: DataSourceKind

type in MapsGL JS

Link copied to clipboard
abstract var timeRange: ClosedRange<Date>?
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun addConsumer(consumer: DataSourceConsumer)

Adds a map layer as a consumer of the data source.

Link copied to clipboard
inline fun <EventType : Event> EventSource.publisher(eventType: Class<EventType>): Flow<EventType>
Link copied to clipboard
abstract fun removeConsumer(layerId: String)

Removes a map layer as a consumer of the data source.

Link copied to clipboard
inline suspend fun <EventType : Event> EventSource.subscribe(eventType: Class<EventType>, crossinline handler: (EventType) -> Unit)
Link copied to clipboard