BitmapLayerDescriptor

Bitmap-style layer (raster, sample, contour, particle, grid): encoded/image tiles plus optional built-in mask and timing.

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 mask: MaskLayerKind
Link copied to clipboard

When mask is MaskLayerKind.COUNTRY, ISO 3166-1 alpha-2 (e.g. "US", "ES"). Ignored for other mask kinds.

Link copied to clipboard
abstract var paint: P

Type-specific paint/layout.

Link copied to clipboard
abstract var quality: DataQuality
Link copied to clipboard
abstract var source: String

Id of a registered source (SourceDescriptor.id).

Link copied to clipboard
abstract var timing: LayerTiming?

Optional per-layer timing (Apple timing). When non-null, com.xweather.mapsgl.map.MapController.addLayer copies these fields onto the created com.xweather.mapsgl.layers.tile.TileLayer.timing. Null keeps the layer's existing defaults.

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)