diff --git a/public/js/globe.js b/public/js/globe.js index 3ee0bd62706976c53a48a9cb3392e0d712da29e8..ae8a3e95be07e93c4a30b60c8214f6900fa21a9c 100644 --- a/public/js/globe.js +++ b/public/js/globe.js @@ -244,7 +244,7 @@ var pickRoofType var pickUValue var shadowHourValue = 0; -var SurfacePvPotential = []; +var SurfacePvPotential; var SurfacePvPotentialObject = []; //object which stores all the pvPotential data @@ -367,8 +367,8 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) { normalizedPvValue = getNormalizedValue(chosenPvPotentialValue); console.log("normalisierter", normalizedPvValue); t.color = Cesium.Color.fromCssColorString(getColorFromPalette(normalizedPvValue, "pvPotential")); //coloring the surface - - // SurfacePvPotential = value["attributes"]["pvPotential"][chosenAttributeRadioBtnFlag]; + SurfacePvPotential = chosenPvPotentialValue; + SurfacePvPotentialObject = value["attributes"]["pvPotential"]; console.log(SurfacePvPotentialObject); } @@ -403,7 +403,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) { "<tr><th>description</th><td>" + pickedFeature.getProperty("description") + "</td></tr>" + "<tr><th>feature_type</th><td>" + pickedFeature.getProperty("feature_type") + "</td></tr>" + "<tr><th>shadow value</th><td>" + shadowhourvaluepercent.toFixed(1) + "%" + "</td></tr>" + - "<tr><th>totalInvestment</th><td>" + SurfacePvPotential + "</td></tr>" + + "<tr><th>"+chosenAttributeRadioBtnFlag+"</th><td>" + SurfacePvPotential + "</td></tr>" + "</tbody></table>";