Show / Hide Table of Contents

Method CreateLookAtViewpoint

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

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

Declaration
public static KmlViewpoint CreateLookAtViewpoint(MapPoint lookAtLocation, double heading, double pitch, double range, KmlAltitudeMode altitudeMode)
Parameters
Type Name Description
MapPoint lookAtLocation

The observed location.

System.Double heading

The Heading relative to the line-of-sight towards lookAtLocation.

System.Double pitch

The Pitch relative to the line-of-sight towards lookAtLocation.

System.Double range

The distance between the point of observation (camera) and the point being observed.

KmlAltitudeMode altitudeMode

The KmlAltitudeMode that determines how Z-values of lookAtLocation should be interpreted.

Returns
Type Description
KmlViewpoint

A newly-created KmlViewpoint.

Remarks

A 'LookAt' KML viewpoint positions the camera indirectly, in relation to an observed location. The Type of the created KML viewpoint will be LookAt.

Exceptions
Type Condition
System.ArgumentNullException

lookAtLocation is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7
In This Article
Back to top Copyright © 2022 Esri.