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;

viewer.camera.maximumZoomFactor = 0;
var currentMagnitude = viewer.camera.getMagnitude();
console.log('currentMagnitude - ' + currentMagnitude);
viewer.camera.zoomIn((currentMagnitude - 1000));
console.log('NewMagnitude - '+ viewer.camera.getMagnitude());

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?

Hello,

Thanks for reporting this! It looks like a bug. I submitted an issue here: https://github.com/AnalyticalGraphicsInc/cesium/issues/4898

Best,

Hannah

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

Thanks,

-Will