Show / Hide Table of Contents

Class Viewpoint

A location within a GeoView.

Inheritance
Object
Viewpoint
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Viewpoint

Constructors

Name Description
Viewpoint(Geometry)

Initializes a new instance of the Viewpoint class with a bounding extent.

Viewpoint(Geometry, Camera)

Initializes a new instance of the Viewpoint class using a bounding extent and a Camera.

Viewpoint(Geometry, Double)

Initializes a new instance of the Viewpoint class with a bounding extent and rotation.

Viewpoint(Geometry, Double, Camera)

Initializes a new instance of the Viewpoint class with a bounding extent, rotation, and Camera.

Viewpoint(MapPoint, Double)

Initializes a new instance of the Viewpoint class with center point and scale.

Viewpoint(MapPoint, Double, Camera)

Initializes a new instance of the Viewpoint class with center point, scale, and Camera.

Viewpoint(MapPoint, Double, Double)

Initializes a new instance of the Viewpoint class with center point, scale and rotation.

Viewpoint(MapPoint, Double, Double, Camera)

Initializes a new instance of the Viewpoint class with center point, scale, rotation, and Camera.

Viewpoint(Double, Double, Double)

Initializes a new instance of the Viewpoint class with latitude, longitude, and scale.

Viewpoint(Double, Double, Double, Camera)

Initializes a new instance of the Viewpoint class with latitude, longitude, scale, and Camera.

Properties

Name Description
Camera

Gets the viewpoint's Camera, or null if it hasn't one.

Rotation

Gets the viewpoint rotation angle in degrees between 0 and 360.

TargetGeometry

Gets the target geometry this view is requesting.

TargetScale

Gets the target scale for the viewpoint, or NaN if this is an extent-based viewpoint.

ViewpointType

Gets the viewpoint's type.

Methods

Name Description
FromJson(String)

Creates a Viewpoint instance from JSON.

ToJson()

Converts this instance to JSON.

See Also

InitialViewpoint

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

Relevant samples

Add ENC exchange set: Display nautical charts per the ENC specification.
Add graphics with symbols: Use a symbol style to display a graphic on a graphics overlay.
Analyze hotspots: Use a geoprocessing service and a set of features to identify statistically significant hot spots and cold spots.
Buffer list: Generate multiple individual buffers or a single unioned buffer around multiple points.
In This Article
Back to top Copyright © 2022 Esri.