Constructor OrbitGeoElementCameraController
OrbitGeoElementCameraController(GeoElement, Double)
Initializes a new instance of the OrbitGeoElementCameraController class from a specified GeoElement.
Declaration
public OrbitGeoElementCameraController(GeoElement targetGeoElement, double distance)
Parameters
Type | Name | Description |
---|---|---|
GeoElement | targetGeoElement | A GeoElement (Graphic or Feature) which will be the focus of the camera in the SceneView control. |
Double | distance | The distance the camera will be placed from the target GeoElement. |
Remarks
An Orbit camera controller is used to associate camera navigation and movement with a point GeoElement. This can take the form of a point Graphic or a point Feature. When the controller is set on the SceneView using the CameraController property, the interaction mode will change for the active navigation model be focused on the target GeoElement allowing the user to rotate around and zoom in an out from the object. For a moving point object the camera will move in synchronization with it. Adjusting its position, heading, pitch and roll with the target by simply changing the target with no requirement to change the camera.
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.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.15 |