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',
}));Content copied to clipboard
See also
Types
Link copied to clipboard
interface ConstructorOptions
Initialization options for the EquirectangularPanorama constructor
Functions
Link copied to clipboard
Returns true if this object was destroyed; otherwise, false.
Link copied to clipboard
Called when Viewer or CesiumWidget render the scene to get the draw commands needed to render this primitive.