diff --git a/public/js/globe.js b/public/js/globe.js index af2cdf7dcf69d7743f28b85f03f9de40a873ed0c..5da84eeca2bdb91d5777e1f23e5f8ace580d6a1e 100644 --- a/public/js/globe.js +++ b/public/js/globe.js @@ -122,7 +122,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onMouseMove(movement) { var name = pickedFeature.getProperty("gml_id"); - nameOverlay.textContent = "ID: " + name + "hier kommt noch die Verschatungsdaten"; + nameOverlay.textContent = "ID: " + name + "\t shadowvalue:" + shadowHourValue; // Highlight the feature if it's not already selected. selectedFeatures.forEach(s => { if (s.feature === pickedFeature) { @@ -189,7 +189,7 @@ var pickHeatedVolume var pickTotalSurfaceArea = 0 var pickRoofType var pickUValue - +var shadowHourValue=0; //Color a feature on selection and show metadata in the InfoBox @@ -259,7 +259,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) { //fill variables for Single Building Properties fillTableProperties(gmlID, surID) - var shadowHourValue=0; + if (document.getElementById("surface").checked) {