Sleet

Derived sleet accumulation over the last hour.

The source requests precipitation rate, precipitation type and temperature; those three bands are rewritten into a single accumulation value by com.xweather.mapsgl.sources.transformers.SleetTransformer before the tile is drawn, so this layer samples rgb as one value spread across three bands, exactly as Snow does.

Not available in 1.8.0: com.xweather.mapsgl.weather.LayerCode.SLEET is omitted from com.xweather.mapsgl.weather.LayerCode.availableEntries, and addWeatherLayer returns null.

Constructors

Link copied to clipboard
constructor(service: WeatherService)

Properties

Link copied to clipboard
open override val code: LayerCode
Link copied to clipboard
open override val layer: SampleLayerDescriptor

Layer definition for style/render behavior.

Link copied to clipboard
open override var legend: Legend?

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

Link copied to clipboard
open override 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
Link copied to clipboard
open override val source: EncodedSourceDescriptor

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.