how to add gyroscope/compass to cesium viewer? and how to print PDFs or take screenshots?

Hi everyone,

I’ve noticed on two seperate cesium-based applications a gyroscope is used, similar to Google Earth, to help users orient themselves. Where does this come from? How could I add it to my own application?

Two examples:,

Also, both of these apps give the option for the user to take a nice screenshot or print a PDF. How is that done?

I’ve done some research on both topics and they don’t seem to be too easy to do… so I thought I’d ask here.



Screen Shot 2016-12-26 at 8.02.54 PM.png


There is a compass, distance scale and navigation controls here:



wow, that is nice! and easy to setup. thanks!