var viewer = new Cesium.Viewer(elementId, {
...
sceneMode: Cesium.SceneMode.COLUMBUS_VIEW,
...
});
var view = {
destination: camera.position,
orientation: {
direction: camera.direction,
up: camera.up,
heading: camera.heading,
pitch: camera.pitch,
roll: camera.roll
}
};
viewer.camera.setView(view);
camera和viewer.camera差不多,结果viewer.camera.position的y、z变化巨大
camera.position
{
x: 12054605.114762893
y: 2542857.6762498124
z: 800.0000042887405
}
setView后viewer.camera.position
{
x: 1325995.7283952972
y: 414.1685216622622
z: 5941750.59179768
}