Commit 889155dd authored by Izairi's avatar Izairi
Browse files

showing shadowdata of clicksurface

parent 5f7d44be
...@@ -14,7 +14,7 @@ var heatedVolumeSortPick ...@@ -14,7 +14,7 @@ var heatedVolumeSortPick
var totalSurfaceAreaSortPick var totalSurfaceAreaSortPick
var roofTypeSortPick var roofTypeSortPick
var uValueSortPick var uValueSortPick
var shadowdata
async function fetchshadowDataJSON() { async function fetchshadowDataJSON() {
var bottomLat = coordinatesBB[1] var bottomLat = coordinatesBB[1]
...@@ -99,7 +99,8 @@ function processData() { ...@@ -99,7 +99,8 @@ function processData() {
timeout(25000, fetchshadowDataJSON()).then((response)=>{ timeout(25000, fetchshadowDataJSON()).then((response)=>{
console.log(response) console.log(response)
shadowdata = response ;
}).catch((error)=>{ //catching the error(no connection)/ timeout and displaying an alert for the user }).catch((error)=>{ //catching the error(no connection)/ timeout and displaying an alert for the user
swal({text:"Could not connect to Server. Using now: local data",icon:"info" } ); swal({text:"Could not connect to Server. Using now: local data",icon:"info" } );
...@@ -336,7 +337,9 @@ window.onclick = function (event) { ...@@ -336,7 +337,9 @@ window.onclick = function (event) {
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------
var tileData = null; var tileData = null;
var tileset = null; var tileset = null;
var tilesetURL = 'http://vm24.fkc.hft-stuttgart.de:8081/CampusLOD2Old/tileset.json'; //var tilesetURL = 'http://vm24.fkc.hft-stuttgart.de:8081/CampusLOD2Old/tileset.json';
var tilesetURL = 'http://vm24.fkc.hft-stuttgart.de:8081/CampusLOD2/tileset.json';
var localTestTileset = '/3dclient4simstadtapi/public/test/gmlTileset_v1.json'; var localTestTileset = '/3dclient4simstadtapi/public/test/gmlTileset_v1.json';
......
...@@ -138,7 +138,11 @@ viewer.screenSpaceEventHandler.setInputAction(function onMouseMove(movement) { ...@@ -138,7 +138,11 @@ viewer.screenSpaceEventHandler.setInputAction(function onMouseMove(movement) {
//debugging - getting all info of the clicked surface //debugging - getting all info of the clicked surface
//console.log(t.getPropertyNames()); //console.log(t.getPropertyNames());
console.log(t.getProperty("description")+"\n"+t.getProperty("feature_type")+"\n" + t.getProperty("gml_id") + "\n" + t.getProperty("gml_parent_id")); console.log(t.getProperty("description")+"\n"+t.getProperty("feature_type")+"\n" + t.getProperty("gml_id") + "\n" + t.getProperty("gml_parent_id"));
for (const [key, value] of Object.entries(shadowdata)) {
if(key === t.getProperty("gml_id")){
console.log(key, value);
}
}
} }
}); });
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment