Show / Hide Table of Contents

Method CreateWithViewpoint

CreateWithViewpoint(Viewpoint)

Creates a KML viewpoint from a Viewpoint.

Declaration
public static KmlViewpoint CreateWithViewpoint(Viewpoint viewpoint)
Parameters
Type Name Description
Viewpoint viewpoint

The viewpoint.

Returns
Type Description
KmlViewpoint

A newly-created KmlViewpoint.

Remarks

KML viewpoint defines either a look-at point or a camera, whereas a Viewpoint must always have a look-at point, and optionally also have a camera. A viewpoint that has a camera will create a KML viewpoint of type Camera. A viewpoint that has no camera will create a KML viewpoint of type LookAt.

Exceptions
Type Condition
System.ArgumentNullException

viewpoint 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.