flyTo vs setView maximum zoom in 2d mode

Does camera.flyTo have a maximum zoom it supports? Looking at the below Sandcastle code, it seems like it is maxed at 40 million units while setView can go higher.

var viewer = new Cesium.Viewer(‘cesiumContainer’, { sceneMode : Cesium.SceneMode.SCENE2D });

Sandcastle.addToolbarButton(‘flyTo’, function() {

viewer.camera.flyTo({

destination: Cesium.Cartesian3.fromDegrees(0, 0, 60000000),

duration: 0.5

});

setTimeout(function () {

var position = viewer.camera.positionCartographic;

console.log(position.height);

}, 1000);

});

Sandcastle.addToolbarButton(‘setView’, function() {

viewer.camera.setView({

destination: Cesium.Cartesian3.fromDegrees(0, 0, 60000000)

});

setTimeout(function () {

var position = viewer.camera.positionCartographic;

console.log(position.height);

}, 1000);

});

``

I tried setting camera.maximumZoomFactor to 100, but that didn’t seem to do anything in regards to the max flyTo can go to.

Hello,

This looks like a bug in Cesium. setView is moving the camera further away from the map than it’s supposed to. flyTo has the correct behavior.

I’ve filed an issue on our GitHub so we can fix the problem: https://github.com/AnalyticalGraphicsInc/cesium/issues/4246

Thanks!

Hannah