Billboards are not visible in 2D view

Hi Everyone,

I am using Cesium version 1.21 and trying to add entities to map.

I'm using billboard graphics. The code below shows how I'm adding entities to cesiumViewer.

  var entities = czmWorld.entities;
  var billBoard = new Cesium.BillboardGraphics({
                image: "../Images/test.png",
                width:60,
                height:60
  });

  // Create entity object
  this.cesiumEntity = new Cesium.Entity({
                id: this.id,
                name: this.name,
                billboard: billBoard,
                position: Cesium.Cartesian3.fromDegrees(this.entityExtent[0], this.entityExtent[1], 0),
                show: new Cesium.ConstantProperty(true)
  });

  // Add object to cesium viewer entities list
  entities.add(this.cesiumEntity);

This code works fine, it shows entity in 3D view and columbus view. But when I'm switching to 2D all entities gets disappears and again if switching back from 2D to 3D or 2D to 2.5D entities starts appearing again.

It works fine for simple entities like adding ellipsoid.

entities.add({
        
        position : Cesium.Cartesian3.fromDegrees(-102.0, 45.0, height),
        ellipsoid : {
            radii : new Cesium.Cartesian3(45000.0, 45000.0, 90000.0),
            material : Cesium.Color.fromRandom({alpha : 1.0})
        }
    });

Working example for billboard :

Any suggestion why it's not working.

Thanks,
Vineet Singh

Hello Vineet,

This sounds like an issue we fixed in the 1.27 release of Cesium. Please update to the latest version and let me know if you are still experiencing this problem.

Thanks,

Hannah