Close the infoBox when selected entity is not available

Hi all,

I have added a czmlDataSource loading data with time bound entities.

I discovered that when I select an entity, the infoBox stays visible after the selected entity is already not available. Same goes when I drag the time-line to a time befor the entity was created.

Is there any way to change this behavior?

Hello,

The code that sets the infobox visibility can be found here: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Widgets/Viewer/Viewer.js#L1521

You can change that line to

infoBoxViewModel.showInfo = showSelection && selectedEntity.isShowing && selectedEntity.isAvailable(time)

``

to hide the infobox when the selected entity is not available.

Check out our build guide for instructions on downloading and building the code base: https://github.com/AnalyticalGraphicsInc/cesium/tree/master/Documentation/Contributors/BuildGuide

Best,

Hannah