GlobeView.CameraPoint Property
Gets or sets the camera position.
Syntax
public Point CameraPoint { get; set; }
Property Value
Default: X: 0.0 Y: 0.0 Z: 0.0
A point whose x and y-coordinates are defined in the coordinate reference system of the view and the z-coordinate specifies the height in meters.
Remarks
The position of the camera (viewer) in three dimensions.
Example
// Set camera to view Gothenburg in a GlobeView
public static void SetCameraToViewGotheBurg(GlobeView globeView)
{
// Set the CameraPitch to -80 degrees
globeView.CameraPitch = -80.0;
// Set the CameraBearing to 180 degrees, so the camera looks from north to south
globeView.CameraBearing = 180.0;
// The center coordinates of Gothenburg in Wgs84LongLat and altitude of 15.000m
Point gothenburgCenter = new Point(11.974560, 57.708870, 15000.0);
// Set the CameraPoint to Gothenburg center
globeView.CameraPoint = gothenburgCenter;
// Update the View
globeView.Update();
}
Platforms
Windows, Linux, Android