//filling the table in the info sidebar with data function fillTableProperties(gID, sID) { if (drawBox === false) { swal("CAN'T LOAD DATA!", "mark an area first!", "error"); document.getElementById("singleChartContainer").style.visibility = "hidden" document.getElementsByClassName('cesium-infoBox-defaultTable').style.display = 'none'; } else { //Property BuildingFunction buildingFunctionSortPick.forEach((value, key) => { if (key === gID) { pickBuildingFunction = value } }) //Property Year of Construction constructionYearSortPick.forEach((value, key) => { if (key === gID) { pickYearOfConstruction = value } }) //Property height heightSortPick.forEach((value, key) => { if (key === gID) { pickHeight = value } }) //Property HeatedVolume heatedVolumeSortPick.forEach((value, key) => { if (key === gID) { pickHeatedVolume = value } }) //Property TotalSurfaceArea totalSurfaceAreaSortPick.forEach((value, key) => { if (key === gID) { var sum = 0 value.forEach(element => { sum += element.totalSurfaceArea }); pickTotalSurfaceArea = sum } }) //Property RoofType roofTypeSortPick.forEach((value, key) => { if (key === gID) { pickRoofType = value } }) //Property UValue uValueSortPick.forEach((value, key) => { if (key === sID) { pickUValue = value } }) } }