Show / Hide Table of Contents

Constructor Viewpoint

Viewpoint(Geometry)

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

Declaration
public Viewpoint(Geometry targetGeometry)
Parameters
Type Name Description
Geometry targetGeometry

The geometry to use as the visible area.

Remarks

The spatial reference of the target geometry cannot be null.

Exceptions
Type Condition
ArgumentNullException

targetGeometry is null.

Applies to

Platforms and versions
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.

Viewpoint(Geometry, Camera)

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

Declaration
public Viewpoint(Geometry targetGeometry, Camera camera)
Parameters
Type Name Description
Geometry targetGeometry

The geometry to use as the visible area.

Camera camera

A Camera object that defines the observer for the scene.

Remarks

The spatial reference of the target geometry cannot be null.

Exceptions
Type Condition
ArgumentNullException

targetGeometry is null.

Applies to

Platforms and versions
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
Edit KML ground overlay: Edit the values of a KML ground overlay.
Feature layer rendering mode (scene): Render features in a scene statically or dynamically by setting the feature layer rendering mode.
List KML contents: List the contents of a KML file.

Viewpoint(Geometry, Double)

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

Declaration
public Viewpoint(Geometry targetGeometry, double rotation)
Parameters
Type Name Description
Geometry targetGeometry

The geometry to use as the visible area.

Double rotation

The rotation angle in degrees between 0 and 360.

Remarks

The spatial reference of the target geometry cannot be null.

Exceptions
Type Condition
ArgumentNullException

targetGeometry is null.

Applies to

Platforms and versions
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

Viewpoint(Geometry, Double, Camera)

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

Declaration
public Viewpoint(Geometry targetGeometry, double rotation, Camera camera)
Parameters
Type Name Description
Geometry targetGeometry

The geometry to use as the visible area.

Double rotation

The rotation angle in degrees between 0 and 360.

Camera camera

A Camera object that defines the observer for the scene.

Remarks

The spatial reference of the target geometry cannot be null.

Exceptions
Type Condition
ArgumentNullException

targetGeometry is null.

Applies to

Platforms and versions
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

Viewpoint(Double, Double, Double)

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

Declaration
public Viewpoint(double latitude, double longitude, double scale)
Parameters
Type Name Description
Double latitude

The latitude coordinate for the viewpoint. Negative values are south of the equator.

Double longitude

The longitude coordinate for the viewpoint. Negative values are west of the prime meridian.

Double scale

Map scale, Ratio between the distance on the map and the corresponding distance on the ground.

Remarks

The spatial reference for the defined point is WGS84.

Applies to

Platforms and versions
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
Export tiles: Download tiles to a local tile cache file stored on the device.
Find service area: Find the service area within a network from a given point.
Manage bookmarks: Access and create bookmarks on a map.
Route around barriers: Find a route that reaches all stops without crossing any barriers.

Viewpoint(Double, Double, Double, Camera)

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

Declaration
public Viewpoint(double latitude, double longitude, double scale, Camera camera)
Parameters
Type Name Description
Double latitude

The latitude coordinate for the viewpoint. Negative values are south of the equator.

Double longitude

The longitude coordinate for the viewpoint. Negative values are west of the prime meridian.

Double scale

Map scale, Ratio between the distance on the map and the corresponding distance on the ground.

Camera camera

A Camera object that defines the observer for the scene.

Remarks

The spatial reference for the defined point is WGS84.

Applies to

Platforms and versions
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

Viewpoint(MapPoint, Double)

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

Declaration
public Viewpoint(MapPoint center, double scale)
Parameters
Type Name Description
MapPoint center

The center of the visible area.

Double scale

Map Scale, Ratio between the distance on the map and the corresponding distance on the ground.

Remarks

The spatial reference of the center point cannot be null.

Exceptions
Type Condition
ArgumentNullException

center is null.

ArgumentException

center lacks a spatial reference; or scale is NaN.

ArgumentOutOfRangeException

scale is 0 or negative.

Applies to

Platforms and versions
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
Display KML network links: Display a file with a KML network link, including displaying any network link control messages at launch.
Display layer view state: Determine if a layer is currently being viewed.
Feature layer definition expression: Limit the features displayed on a map with a definition expression.
Feature layer query: Find features in a feature table which match an SQL query.

Viewpoint(MapPoint, Double, Camera)

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

Declaration
public Viewpoint(MapPoint center, double scale, Camera camera)
Parameters
Type Name Description
MapPoint center

The center of the visible area.

Double scale

Map Scale, Ratio between the distance on the map and the corresponding distance on the ground.

Camera camera

A Camera object that defines the observer for the scene.

Remarks

The spatial reference of the center point cannot be null.

Exceptions
Type Condition
ArgumentNullException

center is null.

ArgumentException

center lacks a spatial reference; or scale is NaN.

ArgumentOutOfRangeException

scale is 0 or negative.

Applies to

Platforms and versions
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

Viewpoint(MapPoint, Double, Double)

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

Declaration
public Viewpoint(MapPoint center, double scale, double rotation)
Parameters
Type Name Description
MapPoint center

The center of the visible area.

Double scale

Map Scale, Ratio between the distance on the map and the corresponding distance on the ground.

Double rotation

The rotation angle in degrees between 0 and 360.

Remarks

The spatial reference of the center point cannot be null.

Exceptions
Type Condition
ArgumentNullException

center is null.

ArgumentException

center lacks a spatial reference; or scale is NaN.

ArgumentOutOfRangeException

scale is 0 or negative.

Applies to

Platforms and versions
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
Feature layer rendering mode (map): Render features statically or dynamically by setting the feature layer rendering mode.

Viewpoint(MapPoint, Double, Double, Camera)

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

Declaration
public Viewpoint(MapPoint center, double scale, double rotation, Camera camera)
Parameters
Type Name Description
MapPoint center

The center of the visible area.

Double scale

Map Scale, Ratio between the distance on the map and the corresponding distance on the ground.

Double rotation

The rotation angle in degrees between 0 and 360.

Camera camera

A Camera object that defines the observer for the scene.

Remarks

The spatial reference of the center point cannot be null.

Exceptions
Type Condition
ArgumentNullException

center is null.

ArgumentException

center lacks a spatial reference; or scale is NaN.

ArgumentOutOfRangeException

scale is 0 or negative.

Applies to

Platforms and versions
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
In This Article
Back to top Copyright © 2022 Esri.