Formatting information showed when clicked on a billboard

Hi,

I am new to Cesium and I am loading data from a GeoJSON and based on type creating a billboard.

Is there a way to format the data shown when clicked on the billboard.
image

According to the the following documentation Billboard - Cesium Documentation id attribute is type object however if I just pass a dummy object it doesn’t get rendered.

I have added the code snippet below:

Blockquote
Cesium.GeoJsonDataSource.load(data, options)
.then((dataSource) => {
const entities = dataSource.entities.values
for (let i = 0; i < entities.length; i++) {
const entity = entities[i]
if (entity.properties.label._value === ‘Point’) {
const z = entity.properties.elevation._value
const [x,y] = entity.properties.geom2d._value.coordinates

                        billboards.add({
                            id: entity,
                            position: Cesium.Cartesian3.fromDegrees(x, y, z),
                            image: "../img/images.png",
                            scale: 0.25,
                        });
                    }
                }
                viewer.dataSources.add(dataSource)
            })

Blockquote

Any help is highly appreciated

Thank You

Hi there,

You can configure this panel by setting the entity description.

1 Like