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 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 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)