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 |
|
| ArgumentException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
| ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
| ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|
| ArgumentException |
|
| ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
| ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|
| ArgumentException |
|
| ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
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 |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
| ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |