PrecipitationRate

precip-rate: instantaneous precipitation rate, the green channel of the cloud-cover / precip-rate / UV source. Matches MapsGL JS conditions.precip_rate.fill: prate stops over 0..25 in/hr, in mm/s as the encoded product stores it.

Restored from the configuration that was commented out of Conditions at v1.0.0, and the product precip-rate-text samples. Its legend is its own (precipRateLegend); JS borrows the radar legend, which titles it "Radar". No inspector presentation yet.

Unlike JS it has a draw range, starting at the first visible stop. The color lookup table cannot resolve stops that close to zero, so without one a dry pixel picked up the first green and the whole map drew a translucent wash. The range also keeps precip-rate-text off dry cities, as precip and precip-text already are.

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.