How to intercept on-click on entities (and remove green square) ?

1. A concise explanation of the problem you’re experiencing.

When I click on labels, or billboards, Cesium show a green square on the center of the entity.

  1. How can I remove it?

  2. How can I intercept the on-click event?

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you’re using, your operating system and browser.

1.61

Try this.

viewer.selectedEntityChanged.addEventListener(function(newEntity) {
console.log(newEntity);

viewer.selectedEntity = undefined;  

// to do your custom logic

});