InfoBox closes on click of terrain

Hi,

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?

Hello,

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: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Widgets/Viewer/Viewer.js#L703

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: https://github.com/AnalyticalGraphicsInc/cesium/tree/master/Documentation/Contributors/BuildGuide

Best,

Hannah