EquirectangularPanorama

A Panorama that displays imagery in equirectangular format in a scene.

const position = Cartesian3.fromDegrees(
-75.1699, // longitude
39.9522, // latitude
100.0 // height in meters
);

const heading = Math.toRadians(45.0); // rotation about up axis
const pitch = Math.toRadians(-30.0); // pitch (negative looks down)
const roll = Math.toRadians(10.0); // roll about forward axis

const hpr = new HeadingPitchRoll(
heading,
pitch,
roll
);

const modelMatrix = Transforms.headingPitchRollToFixedFrame(
position,
hpr,
Ellipsoid.WGS84,
Transforms.eastNorthUpToFixedFrame
);

scene.primitives.add(new EquirectangularPanorama({
transform: modelMatrix,
image: 'path/to/image',
}));

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Initialization options for the EquirectangularPanorama constructor

Properties

Link copied to clipboard

Gets the credits of the panorama.

Link copied to clipboard

Gets the source image of the panorama.

Link copied to clipboard

Gets the radius of the panorama.

Link copied to clipboard

Determines if the equirectangular panorama will be shown.

Link copied to clipboard

Gets the transform of the panorama.

Functions

Link copied to clipboard
fun destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Link copied to clipboard

Returns true if this object was destroyed; otherwise, false.

Link copied to clipboard
fun update()

Called when Viewer or CesiumWidget render the scene to get the draw commands needed to render this primitive.