Camera setView in 2D

I'm trying to add a button to a Cesium App that reorients the user to a North is up, View straight down, roll is nullified orientation. I want the camera position to remain the same, just update the heading, pitch, and roll. In 2D mode, the camera position changes when I make this call, even though it seems like it shouldn't. Code to reproduce this effect in the Sandbox is listed below:

var viewer = new Cesium.Viewer('cesiumContainer');

var btn = document.getElementById('btn');
btn.addEventListener('click', function(){{
        roll: 0,
        pitch: -Cesium.Math.PI_OVER_TWO,
        heading: 0

    @import url(../templates/bucket.css);
<div id="cesiumContainer" class="fullSize"></div>
<div id="loadingOverlay"><h1>Loading...</h1></div>
<div id="toolbar">
<button id="btn">rotateNorthUpDown</button>

Am I doing something incorrectly, or is this a bug with setView in 2D mode?


Something is definitely wrong here. I just submitted an issue for it and hopefully we can fix it before the next release (Sep 1st):

The only bug I see on your end is that you should be using (which is always in world coordinates) camera.position is not in world coordinates when in 2D scene mode. However, making this change does not completely fix the problem. Thanks for the bug report (and sorry it took so long to get back to you, the entire team was bogged down by the SIGGRAPH conference last week).