Camera zoomIn unexpected functionality

Hi guys,
If you run the following code in the sandcastle the camera zooms to 1000 metres above the ellipsoid as expected.

var viewer = new Cesium.Viewer('cesiumContainer', {sceneMode : Cesium.SceneMode.SCENE2D});
var scene = viewer.scene;
var clock = viewer.clock; = 0;
var currentMagnitude =;
console.log('currentMagnitude - ' + currentMagnitude); - 1000));
console.log('NewMagnitude - '+;

but if you shrink the map so the width is less than the height the camera ends up metres above the ground. Am I missing something?


Thanks for reporting this! It looks like a bug. I submitted an issue here:



Hi, this bug has been fixed and should be good in the v1.35.