I have the following code for my corridor geometry:
storearray.push(viewer.entities.add({
name: "Corridor ",
show:true,
corridor: {
positions: Cesium.Cartesian3.fromDegreesArray(outcoordarr),
height: showheight,
extrudedHeight: heightfromground,
cornerType: Cesium.CornerType.BEVELED,
width: 1.0,
material: heightcolor
}}));
How can I hide this geometry temporarily? I am using the following code:
viewer.entities.show(storedarray)=false;