Can i hide this box or disable this function on Javascript ?
Yes you can disable infoBox of viewer like this:
const viewer = new Cesium.Viewer("cesiumContainer", {infoBox:false});
I want to disable only selected Entity but not all of infobox . Can i did?
I’m not sure if there is any inbuilt property to disable infoBox for a certain entity. but you can do that by creating custom infoBox.
You can listen selectedEntityChanged event to trigger custom infoBox like:
viewer.selectedEntityChanged.addEventListener(function(selectedEntity) {
if(selectedEntity == "your desired entitiy here")
{
// create or show div element here
}else{
// remove or hide div element here
}
});
Thanks a lot. I will try it.