Commit 0258c397 authored by Kolokolnikova's avatar Kolokolnikova
Browse files

-refactoring

-local api data (buildinginformation) can be loaded
parent 2c28ad89
......@@ -110,6 +110,18 @@ function processData() {
fetchDataJSON().then(data => {
calculateData(data);
}).catch(() => {
console.log("wird nix")
fetch("/3dclient4simstadtapi/public/test/APIdata/buildingInformation.json")
.then(response => response.text())
.then(text => calculateData( JSON.parse(text)))
})
}
function calculateData(data){
console.log(data);
document.getElementById("cesiumContainer").style.opacity = "1";
document.getElementById("loader").style.visibility = "hidden"
......@@ -275,10 +287,6 @@ function processData() {
console.log("not colored")
}
})
}).catch((err) => {
console.log(err)
})
}
function showAllUVales() {
......
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