WeatherLayerConfiguration

Typed weather-layer configuration pairing one data source with one render layer.

This is the core model returned by grouped weather APIs (for example in LayerCodes): each product contributes a source descriptor and a layer descriptor that com.xweather.mapsgl.map.MapController can register with addSource / addLayer / addWeatherLayer.

The generic parameters keep configuration strongly typed:

Optional UI metadata can be attached through presentation and legend.

Parameters

S

Source descriptor type used by the weather layer.

L

Layer descriptor type used to render that source.

See also

Inheritors

Properties

Link copied to clipboard
abstract val code: LayerCode
Link copied to clipboard
abstract val layer: L

Layer definition for style/render behavior.

Link copied to clipboard
abstract var legend: Legend?

Optional legend model synchronized with paint updates when supported by the concrete configuration implementation.

Link copied to clipboard
abstract var presentation: Presentation?

An optional presentation object for this layer. The default implementation is null. Classes that have a presentation should override this property.

Link copied to clipboard
abstract val source: S

Source definition for tile/data fetching.

Functions

Link copied to clipboard

Applies stroke thickness to a single vector line weather configuration (parity with JS addWeatherLayer(..., { paint: { stroke: { thickness } } })).

Link copied to clipboard

Recurses into composite configs and sets line stroke thickness on every child that is a line layer.