Show / Hide Table of Contents

Method CreateCameraViewpoint

CreateCameraViewpoint(MapPoint, Double, Double, Double, KmlAltitudeMode)

Creates a KML viewpoint from the provided camera location.

Declaration
public static KmlViewpoint CreateCameraViewpoint(MapPoint cameraLocation, double heading, double pitch, double roll, KmlAltitudeMode altitudeMode)
Parameters
Type Name Description
MapPoint cameraLocation

The location of the camera.

Double heading

The Heading of the camera.

Double pitch

The Pitch of the camera.

Double roll

The Roll of the camera.

KmlAltitudeMode altitudeMode

The KmlAltitudeMode that determines how Z-value of cameraLocation should be interpreted.

Returns
Type Description
KmlViewpoint

A newly-created KmlViewpoint.

Remarks

A 'Camera' KML viewpoint defines the position of the camera directly. The Type of the created KML viewpoint will be Camera.

Exceptions
Type Condition
System.ArgumentNullException

cameraLocation is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.6 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 100.15
In This Article
Back to top Copyright © 2022 Esri.