Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 100.15
Relevant samples
Choose camera controller: Control the behavior of the camera in a scene.
In This Article
Back to top Copyright © 2022 Esri.