InfoBox closes on click of terrain


I do not want to close the infoBox (opened on click of polygon) on click of terrain. How can I prevent closing infoBox?

The only action that should close infoBox should be close button of infoBox.

Is there any way available in Cesium 1.23?


I think you would have to make changes to the code in order to have this functionality.

This is the function that sets the selected entity on click:

When the ellipsoid is clicked, pickEntity returns undefined, and settings the that.selectedEntity = undefined is what unselects the entity. You could change it so that if pickEntity returns undefined, nothing happens.

In case you haven’t seen it, see the build guide in our contributors documentation for how to get and build the code: