Show / Hide Table of Contents

Constructor OrbitGeoElementCameraController

OrbitGeoElementCameraController(GeoElement, Double)

Initializes a new instance of the OrbitGeoElementCameraController class using a distance from a specified GeoElement.

Declaration
public OrbitGeoElementCameraController(GeoElement targetGeoElement, double distance)
Parameters
Type Name Description
GeoElement targetGeoElement

The GeoElement that will be the focus of the camera in the scene view.

System.Double distance

The distance in meters that the camera will be positioned from the GeoElement.

Remarks

This camera controller is used to associate camera navigation and movement with GeoElement objects, such as Graphic, Feature, and DynamicEntity. When the controller is set on the scene view, using CameraController, the interaction mode allows the user to rotate around and zoom in and out from the object. For a moving object, the camera will move in synchronization with it and the camera position, heading, pitch and roll will automatically adjust. If the GeoElement geometry is a polyline or a polygon, the camera will focus on its center point.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8
Relevant samples
Choose camera controller: Control the behavior of the camera in a scene.
In This Article
Back to top Copyright © 2022 Esri.