Display text when clicked on image

Hi

i have added a billboard image at a particular location. Below is the code

viewer.entities.add({

position : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),

billboard :{

image : ‘Cesuim_logo.png’,

scaleByDistance : new Cesium.NearFarScalar(1.5e2, 1.0, 1.5e7, 0.5),

}

});

I want to display some text when clicked on the image.

Please provide me some sample code.

Thanks in advance.

Regards

Vinay

Hi Vinay,

For picking a billboard, here is the Picking Sandcastle example, click on “Pick Entity”.

To display text, take a look at Labels.

Thanks,

Gabby