From 15090dc7b695b77b9bfdd5593a5459515afb2dc9 Mon Sep 17 00:00:00 2001 From: Medjen <91izme1bif@hft-stuttgart.de> Date: Wed, 1 Dec 2021 23:35:25 +0100 Subject: [PATCH] showing shadowdata to hoverinformation --- public/js/globe.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/globe.js b/public/js/globe.js index af2cdf7..5da84ee 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) { -- GitLab