Stop a billboard from roating with camera


I've created a billboard through CZML with a specific rotation. It acts as a label that's displayed parallel to the path, centered at a midpoint between the path start and end. The problem is that when I rotate the camera, the billboard rotates along with it.

Is there any way to keep the billboard at the initial rotation?

I'll post relevant code if needed.


You can use the alignedAxis property for a billboard to keep it oriented with the globe. Here is an example:

var viewer = new Cesium.Viewer(‘cesiumContainer’);

position : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
billboard :{
image : ‘…/images/Cesium_Logo_overlay.png’,
alignedAxis: Cesium.Cartesian3.UNIT_Z