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 maxZoom: Float?

Highest map zoom at which this layer draws, or null for no upper bound. See minZoom.

Link copied to clipboard
abstract var minZoom: Float?

Lowest map zoom at which this layer draws, or null for no lower bound.

Link copied to clipboard
abstract var paint: P

Type-specific paint/layout.

Link copied to clipboard

Whether to preload low-resolution tiles when the layer is added or its time range changes, so panning or zooming past the loaded tile bounds falls back to coarse data instead of blank map.

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)