Region

@Serializable
data class Region(val id: String? = null, val latLonAltBox: LatLonAltBox, val lod: Lod? = null) : Object

A region contains a bounding box (LatLonAltBox) that describes an area of interest defined by geographic coordinates and altitudes. In addition, a Region contains an LOD (level of detail) extent (Lod) that defines a validity range of the associated Region in terms of projected screen size. A Region is said to be "active" when the bounding box is within the user's view and the LOD requirements are met. Objects associated with a Region are drawn only when the Region is active. When the is onRegion, the Link or Icon is loaded only when the Region is active. See the "Topics in KML" page on Regions for more details. In a Container or NetworkLink hierarchy, this calculation uses the Region that is the closest ancestor in the hierarchy.

Constructors

Link copied to clipboard
constructor(id: String? = null, latLonAltBox: LatLonAltBox, lod: Lod? = null)

Properties

Link copied to clipboard
open override val id: String?
Link copied to clipboard
@XmlElement
val latLonAltBox: LatLonAltBox

A bounding box that describes an area of interest defined by geographic coordinates and altitudes. Default values and required fields are as follows:

Link copied to clipboard
@XmlElement
val lod: Lod?

Lod is an abbreviation for Level of Detail. describes the size of the projected region on the screen that is required in order for the region to be considered "active." Also specifies the size of the pixel ramp used for fading in (from transparent to opaque) and fading out (from opaque to transparent). See diagram below for a visual representation of these parameters.