DataQuery

object DataQuery

Hand-configured data-query (*-text) layers: sample an encoded weather product at base.cities points and publish value + name labels.

Matches the iOS/JS catalog of ~30 built-in query text layers (conditions + air quality). Excluded: waterways-text, and the min/max -text variants, since the max/min products are operation layers without a LayerCode. The sleet and ice variants are listed but not enabled in this build; see LayerCode.availableEntries.

Types

Link copied to clipboard
class PlaceValueText(val service: WeatherService, val spec: DataQuery.Spec) : BaseVectorConfiguration<VectorSourceDescriptor, DataQueryLayerDescriptor>

Shared place-point value+name text layer. Only Spec.code / Spec.sampled / Spec.layerId differ.

Link copied to clipboard
data class Spec(val code: LayerCode, val sampled: LayerCode, val group: String = "conditions")

One catalog entry: public code samples sampled at place points.

Link copied to clipboard

Properties

Link copied to clipboard

Full Android data-query catalog (sampled layer must already exist as a LayerCode). Order matches typical conditions → air-quality listing. Empty while enabled is false, so menus built from it simply have nothing to list.

Link copied to clipboard

Master switch for the entire *-text data-query family. This is the one flag.

Functions

Link copied to clipboard

Builds the weather configuration for a data-query (*-text) code from the full catalog, whether or not enabled is set.

Link copied to clipboard

True when layerId is a catalog data-query symbol layer (value + name stack).