LayerDescriptor

Declarative layer configuration passed to com.xweather.mapsgl.map.MapController.addLayer.

Parameters

P

Paint type for this layer (RasterLayerPaint, FillLayerPaint, …).

Inheritors

Properties

Link copied to clipboard
abstract var id: String

Stable layer id (Mapbox style layer id and MapsGL registry key).

Link copied to clipboard
abstract var paint: P

Type-specific paint/layout.

Link copied to clipboard
abstract var source: String

Id of a registered source (SourceDescriptor.id).

Link copied to clipboard
abstract val type: LayerType

Discriminator matching LayerType.

Functions

Link copied to clipboard
abstract fun off(eventName: String)
Link copied to clipboard
abstract fun on(eventName: String, callback: (Any?) -> Unit)
Link copied to clipboard
abstract fun trigger(eventName: String, data: Any? = null)