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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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 |
---|---|---|
System.Double | latitude | The latitude coordinate for the viewpoint. Negative values are south of the equator. |
System.Double | longitude | The longitude coordinate for the viewpoint. Negative values are west of the prime meridian. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
Viewpoint(Double, Double, Double, Camera)
Declaration
public Viewpoint(double latitude, double longitude, double scale, Camera camera)
Parameters
Type | Name | Description |
---|---|---|
System.Double | latitude | The latitude coordinate for the viewpoint. Negative values are south of the equator. |
System.Double | longitude | The longitude coordinate for the viewpoint. Negative values are west of the prime meridian. |
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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. |
System.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 |
|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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. |
System.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 |
|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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. |
System.Double | scale | Map Scale, Ratio between the distance on the map and the corresponding distance on the ground. |
System.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 |
|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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. |
System.Double | scale | Map Scale, Ratio between the distance on the map and the corresponding distance on the ground. |
System.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 |
|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |