Map rotation

I there,
Just starting with Cesium as a replacement for Google Earth and I am not a programmer.

Can any one help me with how to do a replacement for Google Earth "R" key Map rotation back to North and keeping the zoom level the same.

Thank you.
I await your reply.
David

Hello,

You can orient the globe back to north up with the following code:

viewer.scene.camera.flyTo({

destination: viewer.scene.camera.positionWC,

heading: 0

});

Best,

Hannah