flyToPosition

flyToPosition(TEPosition, options)

Flies to a point in the 3D Window.

Parameters

Name

Type

Description

TEPosition

Object

Position to fly to, created using navigate.position.create.

options

Object

Object that contains all the Cesium flytoBoundingSphere options, e.g., maximumHeight and offset.

 

Example

Cesium.when(TerraExplorer.navigate.position.create({cartesian: Cesium.Cartesian3.fromDegrees(-157.80553, 21.26110, 2500), headingPitchRange: new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-89), 1000), altitudeType: TerraExplorer.AltitudeMethod.RELATIVE_TO_MODEL}),function(pos){

TerraExplorer.navigate.flyToPosition(pos);

});