camera.setView() does not work


I want to set the initial view of the camera when the scene first loads. according to the camera tutorial ( it should be as easy as:

const viewer = new Cesium.Viewer('cesiumContainer', viewerOptions);
const startPos = Cesium.Cartesian3.fromDegrees(4.8951722, 52.3710947, 150000);{ position: startPos });

this does not have any effect. – flying to a position however works fine:{ destination: startPos });

am I missing here?

thanks a lot in advance!


Sorry, the code example is outdated in that tutorial. I’ll update that now.

Use this instead:{
destination: startPos
orientation: {
heading: heading,
pitch: pitch,
roll: roll




I also just realized that. — thanks hannah.