Show / Hide Table of Contents

Class KmlViewpoint

A KML viewpoint contains information about a viewer's position, either defined as a LookAt relationship to another object or a camera. See the guide documentation and samples for information about converting KmlViewpoints into Runtime Viewpoint objects.

Inheritance
Object
KmlViewpoint
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Ogc
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class KmlViewpoint

Properties

Name Description
AltitudeMode

Gets the KML altitude mode, which determines how altitude values should be interpreted.

Heading

Gets the heading in degrees. Ranges from 0 (North) to 360, with 90 being East.

Location

Gets the viewpoint's location.

Pitch

Gets the angle between the camera and the Location, in degrees.

Range

Gets the distance in meters between the Location and the camera.

Roll

Gets the rotation of the camera around the Z axis.

Type

Gets the viewpoint's type (camera or LookAt).

Methods

Name Description
CreateCameraViewpoint(MapPoint, Double, Double, Double, KmlAltitudeMode)

Creates a KML viewpoint from the provided camera location.

CreateLookAtViewpoint(MapPoint, Double, Double, Double, KmlAltitudeMode)

Creates a KML viewpoint from the provided look-at location.

CreateWithViewpoint(Viewpoint)

Creates a KML viewpoint from a Viewpoint.

Applies to

TargetVersions
.NET Standard 2.0100.4 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.4 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.4 - 100.15
Xamarin.iOS100.4 - 100.15
UWP100.4 - 100.15

Relevant samples

List KML contents: List the contents of a KML file.
In This Article
Back to top Copyright © 2022 Esri.