Click or drag to resize

Viewpoint Constructor (MapPoint, Double, Double, Camera)

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

Namespace:  Esri.ArcGISRuntime.Mapping
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public Viewpoint(
	MapPoint center,
	double scale,
	double rotation,
	Camera camera
)

Parameters

center
Type: Esri.ArcGISRuntime.GeometryMapPoint
The center of the visible area.
scale
Type: SystemDouble
Map Scale, Ratio between the distance on the map and the corresponding distance on the ground.
rotation
Type: SystemDouble
The rotation angle in degrees between 0 and 360.
camera
Type: Esri.ArcGISRuntime.MappingCamera
A Camera object that defines the observer for the scene.
Exceptions
ExceptionCondition
ArgumentNullExceptioncenter.
ArgumentExceptionscale cannot be NaN.
ArgumentOutOfRangeExceptionscale must be greater than 0.
Remarks
The spatial reference of the center point cannot be null.
See Also