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 |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Viewpoint(Geometry, 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 |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
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 |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Viewpoint(Geometry, Double, 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 |
---|---|
System.ArgumentNullException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Viewpoint(Double, Double, Double, 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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
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 |
---|---|
System.ArgumentNullException |
|
ArgumentException |
|
ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Viewpoint(MapPoint, Double, 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 |
---|---|
System.ArgumentNullException |
|
ArgumentException |
|
ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
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 |
---|---|
System.ArgumentNullException |
|
ArgumentException |
|
ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Viewpoint(MapPoint, Double, Double, 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 |
---|---|
System.ArgumentNullException |
|
ArgumentException |
|
ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |