Getting started - Default camera position


First of all - the whole Cesium project sure looks very interesting. Good job!

My 1st beginner question is about the Camera. How do I simply re-set the default camera starting position or coordinate? In every demo the camera on the scene initial position is over the US.

Thank you in advance,


If you are using a version that is b11 or earlier, you can use the lookAt function of the camera. The arguments are, in order, the position of the camera, the position of the target and the unit up direction.

scene.getCamera().lookAt(eye, target, up);

If you pull from master, you can still use the lookAt function but it is located on the CameraController with other common ways to manipulate the camera.

scene.getCamera().controller.lookAt(eye, target, up);