LookAt

@Serializable
data class LookAt(val longitude: Double = 0.0, val latitude: Double = 0.0, val altitude: Double = 0.0, val heading: Double = 0.0, val tilt: Double = 0.0, val range: Double, val altitudeMode: AltitudeMode = AltitudeMode.clampToGround) : AbstractView

Defines a virtual camera that is associated with any element derived from Feature. The LookAt element positions the "camera" in relation to the object that is being viewed. In Google Earth, the view "flies to" this LookAt viewpoint when the user double-clicks an item in the Places panel or double-clicks an icon in the 3D viewer.

Constructors

Link copied to clipboard
constructor(longitude: Double = 0.0, latitude: Double = 0.0, altitude: Double = 0.0, heading: Double = 0.0, tilt: Double = 0.0, range: Double, altitudeMode: AltitudeMode = AltitudeMode.clampToGround)

Properties

Link copied to clipboard
@XmlElement
val altitude: Double

Distance from the earth's surface, in meters. Interpreted according to the LookAt's altitude mode.

Link copied to clipboard
@XmlElement
val altitudeMode: AltitudeMode

Specifies how the specified for the LookAt point is interpreted.

Link copied to clipboard
@XmlElement
val heading: Double

Direction (that is, North, South, East, West), in degrees. Default=0 (North). Values range from 0 to 360 degrees.

Link copied to clipboard
@XmlSerialName(value = "horizFov", namespace = "http://www.google.com/kml/ext/2.2", prefix = "gx")
val horizFov: Double

Defines the horizontal field of view of the AbstractView during a tour. This element has no effect on AbstractViews outside of a tour. horizFov is inserted automatically by the Google Earth client (versions 6.1+) during tour recording. Regular AbstractViews are assigned a value of 60; views within Street View are assigned a value of 85 to match the standard Street View field of view in Google Earth. Once set, the value will be applied to subsequent views, until a new value is specified.

Link copied to clipboard
@XmlElement
val latitude: Double

Latitude of the point the camera is looking at. Degrees north or south of the Equator (0 degrees). Values range from −90 degrees to 90 degrees.

Link copied to clipboard
@XmlElement
val longitude: Double

Longitude of the point the camera is looking at. Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from −180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.

Link copied to clipboard
@XmlElement
val range: Double

Distance in meters from the point specified by longitude, latitude, and altitude to the LookAt position.

Link copied to clipboard
@XmlElement
val tilt: Double

Angle between the direction of the LookAt position and the normal to the surface of the earth. Values range from 0 to 90 degrees. Values for tilt cannot be negative. A tilt value of 0 degrees indicates viewing from directly above. A tilt value of 90 degrees indicates viewing along the horizon.