Data

@Serializable
data class Data(val name: String, val displayName: String? = null, val value: String)

Creates an untyped name/value pair. The name can have two versions: name and displayName. The name attribute is used to identify the data pair within the KML file. The displayName element is used when a properly formatted name, with spaces and HTML formatting, is displayed in Google Earth. In the element of , the notation $name/displayName is replaced with . If you substitute the value of the name attribute of the element in this format (for example, $[holeYardage], the attribute value is replaced with . By default, the Placemark's balloon displays the name/value pairs associated with it.

Constructors

Link copied to clipboard
constructor(name: String, displayName: String? = null, value: String)

Properties

Link copied to clipboard
@XmlElement
val displayName: String?

An optional formatted version of name, to be used for display purposes.

Link copied to clipboard

The name attribute is used to identify the data pair within the KML file.

Link copied to clipboard
@XmlElement
val value: String

Value of the data pair.