Presentation

data class Presentation(val title: Any, val alwaysShow: Boolean? = null, val fn: (value: Any) -> String, val encodedQueryUnit: String? = null)

Constructors

Link copied to clipboard
constructor(title: Any, alwaysShow: Boolean? = null, fn: (value: Any) -> String, encodedQueryUnit: String? = null)

Properties

Link copied to clipboard
val alwaysShow: Boolean? = null
Link copied to clipboard

Label for encoded tile query results (com.xweather.mapsgl.layers.QueriedFeature.properties unit key). Should align with how fn interprets the primary numeric value where applicable.

Link copied to clipboard
val fn: (value: Any) -> String
Link copied to clipboard
val title: Any

Functions

Link copied to clipboard
fun setTitle(newTitle: Any): Presentation