Commit 4b9922b4 authored by Patrick's avatar Patrick
Browse files

big update of the structure

parent 6456203a
......@@ -463,6 +463,94 @@
}
],
"balloonHeader": "Balloon header"
},{
"template": [
"<div class='balloon' id='myBalloon'>",
"<div class='balloon-content'>",
"<h1 class='balloon-title'>Balloon header</h1>",
"<% for (var key in obj) { %>",
"<% if (obj[key] instanceof Object){%>",
"<% for (var key2 in obj[key]) { %>",
"<p class='balloon-text'><span class='balloon-street'> <strong> <%=key%>.<%=key2%> </strong> : <%=obj[key][key2]%></span><br></p>",
"<% } %>",
"<% } else{ %>",
"<p class='balloon-text'>",
"<span class='balloon-street'> <strong> <%=key%> </strong> : <%=obj[key]%></span><br>",
"</p>",
"<% } %>",
"<% } %>",
"</div>",
"<div class='balloon-close-col'>",
"<button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>",
"</div>",
"<div class='dialog-image-balloon'></div>",
"<div class='balloon-left-edge'></div>",
"</div>"
],
"layerTypes": [
null
],
"layerNames": [
"Streetnight"
],
"minTop": "balloonHeight + 30",
"minLeft": "70",
"allAvailable": true,
"properties": [
{
"title": "creationDate",
"name": "creationDate"
},
{
"title": "gml:name",
"name": "gml:name"
}
],
"balloonHeader": "Balloon header"
},{
"template": [
"<div class='balloon' id='myBalloon'>",
"<div class='balloon-content'>",
"<h1 class='balloon-title'>Balloon header</h1>",
"<% for (var key in obj) { %>",
"<% if (obj[key] instanceof Object){%>",
"<% for (var key2 in obj[key]) { %>",
"<p class='balloon-text'><span class='balloon-street'> <strong> <%=key%>.<%=key2%> </strong> : <%=obj[key][key2]%></span><br></p>",
"<% } %>",
"<% } else{ %>",
"<p class='balloon-text'>",
"<span class='balloon-street'> <strong> <%=key%> </strong> : <%=obj[key]%></span><br>",
"</p>",
"<% } %>",
"<% } %>",
"</div>",
"<div class='balloon-close-col'>",
"<button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>",
"</div>",
"<div class='dialog-image-balloon'></div>",
"<div class='balloon-left-edge'></div>",
"</div>"
],
"layerTypes": [
null
],
"layerNames": [
"Streetday"
],
"minTop": "balloonHeight + 30",
"minLeft": "70",
"allAvailable": true,
"properties": [
{
"title": "creationDate",
"name": "creationDate"
},
{
"title": "gml:name",
"name": "gml:name"
}
],
"balloonHeader": "Balloon header"
},{
"template": [
"<div class='balloon' id='myBalloon'>",
......@@ -646,7 +734,6 @@
},{
"template": [
"<div class='balloon' style='width: 200px; background-color: #3C3C3C; color: #FFFFFF;' id='myBalloon'>",
" <button class='infobtn' onclick='NordbahnhofText()'></button>",
" <h1 class='balloon-title' style='color: #FFFFFF;'>Nordbahnhof Planungskonzept</h1>",
" <div class='balloon-content' style='margin-right: 0px;'",
" </div>",
......@@ -1181,7 +1268,25 @@
"heightAboveGround": 0
},{
"name": "Streetday",
"url": "./datasource-data/accoustic/DE_a_ag1_Aggroad_Lden_3DTiles/tileset.json",
"url": "./datasource-data/accoustic/Lden/tileset.json",
"type": "vcs.vcm.layer.cesium.Buildings",
"datasourceId": "zECwoSwXppPMrqfbt",
"activeOnStartup": false,
"exclusive": false,
"allowPicking": true,
"screenSpaceError": 32,
"screenSpaceErrorMobile": 32,
"hiddenObjectIds": [],
"copyright": {
"provider": "",
"url": "",
"year": "",
"altitudeMode": "relativeToGround",
"heightAboveGround": 0
}
},{
"name": "Streetnight",
"url": "./datasource-data/accoustic/Lnight/tileset.json",
"type": "vcs.vcm.layer.cesium.Buildings",
"datasourceId": "zECwoSwXppPMrqfbt",
"activeOnStartup": false,
......@@ -1198,7 +1303,7 @@
"heightAboveGround": 0
}
},
{ "name": "Streetnight",
{ "name": "Streetnight1",
"url": "./datasource-data/accoustic/DE_a_ag1_Aggroad_Lnight.json",
"type": "vcs.vcm.layer.GeoJSON",
"datasourceId": "...",
......
#btn_StreetDay, #btn_RailDay{
#btn_StreetDay, #btn_RailDay, #btn_AirDay, #btn_AllDay{
background-color: #ffcc33; /* yellow */
border: none;
color: white;
......@@ -12,13 +12,13 @@
border-radius: 2px;
box-shadow: 0 8px 16px 0 rgba(255,204,51,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
#btn_StreetDay:hover, #btn_RailDay:hover{
#btn_StreetDay:hover, #btn_RailDay:hover, #btn_AirDay:hover, #btn_AllDay:hover{
background-color: #af8a1c;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
cursor: pointer;
}
#btn_StreetNight, #btn_RailNight{
#btn_StreetNight, #btn_RailNight, #btn_AirNight, #btn_AllNight{
background-color: #3583f8; /* yellow */
border: none;
color: white;
......@@ -32,12 +32,12 @@
border-radius: 2px;
box-shadow: 0 8px 16px 0 #3583f833, 0 6px 20px 0 rgba(0,0,0,0.19);
}
#btn_StreetNight:hover, #btn_RailNight:hover{
#btn_StreetNight:hover, #btn_RailNight:hover, #btn_AirNight:hover, #btn_AllNight:hover{
background-color: #235fb9;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
cursor: pointer;
}
#btn_StreetOff, #btn_RailOff{
#btn_StreetOff, #btn_RailOff, #btn_AirOff, #btn_AllOff{
background-color: #424242; /* yellow */
border: none;
color: white;
......@@ -51,7 +51,7 @@
border-radius: 2px;
box-shadow: 0 8px 16px 0 #27272733, 0 6px 20px 0 rgba(0,0,0,0.19);
}
#btn_StreetOff:hover, #btn_RailOff:hover{
#btn_StreetOff:hover, #btn_RailOff:hover, #btn_AirOff:hover, #btn_AllOff:hover{
background-color: #161616;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
cursor: pointer;
......@@ -148,4 +148,7 @@
.dropdown:hover .dropbtn {
background-color: #414141;
}
.leftstuff{
float:left !important
}
\ No newline at end of file
{
"asset" : {
"version" : "0.0"
},
"properties" : {
"OBJECTID" : {
"minimum" : 1,
"maximum" : 2896
},
"DB_L_Rail" : {
"minimum" : 0,
"maximum" : 75
},
"DB_H_Rail" : {
"minimum" : 0,
"maximum" : 79
},
"DB_L_Air" : {
"minimum" : 0,
"maximum" : 75
},
"DB_H_Air" : {
"minimum" : 0,
"maximum" : 79
},
"DB_L_RD" : {
"minimum" : 0,
"maximum" : 75
},
"DB_H_RD" : {
"minimum" : 0,
"maximum" : 79
},
"Shape_Leng" : {
"minimum" : 1.43116412093,
"maximum" : 368809.45578
},
"Shape_Area" : {
"minimum" : 0.01794654989,
"maximum" : 17603711.8501
},
"DB_Low_LD" : {
"minimum" : 55,
"maximum" : 78
},
"DB_High_LD" : {
"minimum" : 59,
"maximum" : 82
}
},
"geometricError" : 23387.695875477744,
"root" : {
"boundingVolume" : {
"box" : [ 4158717.3166303122, 675499.5927418747, 4773191.6863782015, 18750.122031897306, 0, 0, 0, 26924.998041697894, 0, 0, 0, 15209.001041281037 ]
},
"refine" : "ADD",
"content" : {
"boundingVolume" : {
"box" : [ 4158717.3166303122, 675499.5927418747, 4773191.6863782015, 18750.122031897306, 0, 0, 0, 26924.998041697894, 0, 0, 0, 15209.001041281037 ]
},
"url" : "data/data0.b3dm"
}
}
}
\ No newline at end of file
{
"asset" : {
"version" : "0.0"
},
"properties" : {
"OBJECTID" : {
"minimum" : 1,
"maximum" : 1747
},
"DB_L_Rail" : {
"minimum" : 0,
"maximum" : 70
},
"DB_H_Rail" : {
"minimum" : 0,
"maximum" : 79
},
"DB_L_Air" : {
"minimum" : 0,
"maximum" : 70
},
"DB_H_Air" : {
"minimum" : 0,
"maximum" : 79
},
"DB_L_RD" : {
"minimum" : 0,
"maximum" : 70
},
"DB_H_RD" : {
"minimum" : 0,
"maximum" : 79
},
"DB_Low_LN" : {
"minimum" : 50,
"maximum" : 70
},
"DB_High_HN" : {
"minimum" : 54,
"maximum" : 79
}
},
"geometricError" : 15825.33585660148,
"root" : {
"boundingVolume" : {
"box" : [ 4157975.4701979775, 673586.7671057489, 4773611.686461536, 17266.429167228285, 0, 0, 0, 23099.346769446158, 0, 0, 0, 14369.00087461248 ]
},
"refine" : "ADD",
"content" : {
"boundingVolume" : {
"box" : [ 4157975.4701979775, 673586.7671057489, 4773611.686461536, 17266.429167228285, 0, 0, 0, 23099.346769446158, 0, 0, 0, 14369.00087461248 ]
},
"url" : "data/data0.b3dm"
}
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -54,57 +54,337 @@ function getNoiseData(sensorid) {
}
function noisemap(areatime){
var StreetD = false;
var StreetN = false;
var RailD = false;
var RailN = false;
var day = false;
var night = false;
var Air = false;
var All = false;
if (areatime == "offS"){
StreetD = false;
StreetN = false;
} else if (areatime == "offR") {
RailD = false;
RailN = false;
} else if (areatime == "offAir"){
Air = false;
} else if (areatime == "Airday"){
Air = true;
day = true;
night = false;
} else if (areatime == "Airnight"){
Air = true;
day = false;
night = true;
} else if (areatime == "offAll"){
All = false;
} else if (areatime == "Allday"){
All = true;
day = true;
night = false;
} else if (areatime == "Allnight"){
All = true;
day = false;
night = true;
} else if (areatime == "Streetday") {
StreetD = true;
StreetN = false;
RailD = false;
RailN = false;
day= true;
night = false;
} else if (areatime == "Streetnight") {
StreetD = false;
StreetN = true;
RailD = false;
RailN = false;
night = true;
day = false;
} else if (areatime == "Railday") {
StreetD = false;
StreetN = false;
RailD = true;
RailN = false;
day = true;
night = false;
} else if (areatime == "Railnight") {
StreetD = false;
StreetN = false;
RailD = false;
RailN = true;
night = true;
day = false;
}
var layerStreetD = ["Streetday"]
var layerStreetN = ["Streetnight"]
var layerRailD = ["Railday"]
var layerRailN = ["Railnight"]
var layers = framework.getLayers();
for (var i = 0; i< layers.length; i++) {
var layer = layers[i];
if(layerStreetD.indexOf(layer.name) >= 0){
layer.activate(StreetD);
layer.activate(day);
} else if (layerStreetN.indexOf(layer.name) >= 0){
layer.activate(StreetN);
} else if (layerRailD.indexOf(layer.name) >= 0){
layer.activate(RailD);
} else if (layerRailN.indexOf(layer.name) >= 0){
layer.activate(RailN);
layer.activate(night);
}
}
var layernameStuttgartTotal = ["Streetday"]
var layernameStuttgartTotal2 = ["Streetnight"]
var layerIndexStuttgartTotal
if (StreetD == true || StreetN == true){
// layernameStuttgartTotal = ["Streetday"]
} else if (RailD == true || RailN == true){
// layernameStuttgartTotal = ["Streetnight"]
};
var frameworkSTU = vcs.vcm.Framework.getInstance();
var layersSTU = frameworkSTU.getLayers();
for (var i = 0; i< layersSTU.length; i++) {
var layerst = layersSTU[i];
console.log(i)
if (day == true){
if(layernameStuttgartTotal.indexOf(layerst.name) >= 0) {
layerIndexStuttgartTotal = i
}
} else if (night == true){
if(layernameStuttgartTotal2.indexOf(layerst.name) >= 0) {
layerIndexStuttgartTotal = i
}
}
}
var layerSTU = layersSTU[layerIndexStuttgartTotal];
if(typeof layerSTU == 'undefined') {
return;}
var tilesetSTU = layerSTU.cesium3DTileset;
var timeout = setInterval(function() {
console.log(layerSTU.active)
if(layerSTU.active) {
if (StreetD == true || StreetN == true){
tilesetSTU.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
["${DB_H_RD} > 80","color('#1A5784')"],
["${DB_H_RD} > 79","color('#3481B8')"],
["${DB_H_RD} > 70","color('#992572')"],
["${DB_H_RD} > 65","color('#8D1D2C')"],
["${DB_H_RD} > 60","color('#C1121C')"],
["${DB_H_RD} > 55","color('#FA842B')"],
["${DB_H_RD} > 50","color('#AF8A54')"],
["${DB_H_RD} > 45","color('#EAF044')"],
["${DB_H_RD} > 40","color('#026A52')"],
["${DB_H_RD} > 35","color('#48A43F')"],
["${DB_H_RD} <= 35","color('#B7D9B1','0')"]//,
//["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// ["true", "color('#FFFFFF')"],
],
},
});
} else if (RailD == true || RailN == true){
tilesetSTU.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
["${DB_H_Rail} > 80","color('#1A5784')"],
["${DB_H_Rail} > 79","color('#3481B8')"],
["${DB_H_Rail} > 70","color('#992572')"],
["${DB_H_Rail} > 65","color('#8D1D2C')"],
["${DB_H_Rail} > 60","color('#C1121C')"],
["${DB_H_Rail} > 55","color('#FA842B')"],
["${DB_H_Rail} > 50","color('#AF8A54')"],
["${DB_H_Rail} > 45","color('#EAF044')"],
["${DB_H_Rail} > 40","color('#026A52')"],
["${DB_H_Rail} > 35","color('#48A43F')"],
["${DB_H_Rail} <= 35","color('#B7D9B1','0')"]//,
//["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// ["true", "color('#FFFFFF')"],
],
},
});
} else if (Air == true){
tilesetSTU.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
["${DB_H_Air} > 80","color('#1A5784')"],
["${DB_H_Air} > 79","color('#3481B8')"],
["${DB_H_Air} > 70","color('#992572')"],
["${DB_H_Air} > 65","color('#8D1D2C')"],
["${DB_H_Air} > 60","color('#C1121C')"],
["${DB_H_Air} > 55","color('#FA842B')"],
["${DB_H_Air} > 50","color('#AF8A54')"],
["${DB_H_Air} > 45","color('#EAF044')"],
["${DB_H_Air} > 40","color('#026A52')"],
["${DB_H_Air} > 35","color('#48A43F')"],
["${DB_H_Air} <= 35","color('#B7D9B1','0')"]//,
//["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// ["true", "color('#FFFFFF')"],
],
},
});
} else if (All == true & day == true){
tilesetSTU.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
["${DB_High_LD} > 80","color('#1A5784')"],
["${DB_High_LD} > 79","color('#3481B8')"],
["${DB_High_LD} > 70","color('#992572')"],
["${DB_High_LD} > 65","color('#8D1D2C')"],
["${DB_High_LD} > 60","color('#C1121C')"],
["${DB_High_LD} > 55","color('#FA842B')"],
["${DB_High_LD} > 50","color('#AF8A54')"],
["${DB_High_LD} > 45","color('#EAF044')"],
["${DB_High_LD} > 40","color('#026A52')"],
["${DB_High_LD} > 35","color('#48A43F')"],
["${DB_High_LD} <= 35","color('#B7D9B1','0')"]//,
//["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// ["true", "color('#FFFFFF')"],
],
},
});
}else if (All == true & night == true){
tilesetSTU.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
["${DB_High_HN} > 80","color('#1A5784')"],
["${DB_High_HN} > 79","color('#3481B8')"],
["${DB_High_HN} > 70","color('#992572')"],
["${DB_High_HN} > 65","color('#8D1D2C')"],
["${DB_High_HN} > 60","color('#C1121C')"],
["${DB_High_HN} > 55","color('#FA842B')"],
["${DB_High_HN} > 50","color('#AF8A54')"],
["${DB_High_HN} > 45","color('#EAF044')"],
["${DB_High_HN} > 40","color('#026A52')"],
["${DB_High_HN} > 35","color('#48A43F')"],
["${DB_High_HN} <= 35","color('#B7D9B1','0')"]//,
//["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// ["true", "color('#FFFFFF')"],
],
},
});
}
console.log("")
clearInterval(timeout);
}
}, 1000);
}
function noisemap2(areatime){
if (areatime == "day"){
noisemap("Streetday")
var layerIndexStuttgartTotal
var layernameStuttgartTotal = ["Streetday"]
var frameworkSTU = vcs.vcm.Framework.getInstance();
var layersSTU = frameworkSTU.getLayers();
for (var i = 0; i< layersSTU.length; i++) {
var layerst = layersSTU[i];
if(layernameStuttgartTotal.indexOf(layerst.name) >= 0) {
layerIndexStuttgartTotal = i
}}
var layerSTU = layersSTU[layerIndexStuttgartTotal];
var tilesetSTU = layerSTU.cesium3DTileset;
var timeout = setInterval(function() {
console.log(layerSTU.active)
if(layerSTU.active) {
console.log("")
tilesetSTU.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
["${DB_High_LD} > 80","color('#1A5784')"],
["${DB_High_LD} > 79","color('#3481B8')"],
["${DB_High_LD} > 70","color('#992572')"],
["${DB_High_LD} > 65","color('#8D1D2C')"],
["${DB_High_LD} > 60","color('#C1121C')"],
["${DB_High_LD} > 55","color('#FA842B')"],
["${DB_High_LD} > 50","color('#AF8A54')"],
["${DB_High_LD} > 45","color('#EAF044')"],
["${DB_High_LD} > 40","color('#026A52')"],
["${DB_High_LD} > 35","color('#48A43F')"],
["${DB_High_LD} <= 35","color('#B7D9B1')"]//,
//["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// ["true", "color('#FFFFFF')"],
],
},
});
clearInterval(timeout);
}
}, 1000);
} else if (areatime == "night") {
noisemap("Streetnight")
var layerIndexStuttgartTotal
var layernameStuttgartTotal = ["Streetnight"]
var frameworkSTU = vcs.vcm.Framework.getInstance();
var layersSTU = frameworkSTU.getLayers();
for (var i = 0; i< layersSTU.length; i++) {
var layerst = layersSTU[i];
if(layernameStuttgartTotal.indexOf(layerst.name) >= 0) {
layerIndexStuttgartTotal = i
}}
var layerSTU = layersSTU[layerIndexStuttgartTotal];
var tilesetSTU = layerSTU.cesium3DTileset;
var timeout = setInterval(function() {
console.log(layerSTU.active)
if(layerSTU.active) {
console.log("")
tilesetSTU.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
["${DB_High_HN} > 80","color('#1A5784')"],
["${DB_High_HN} > 79","color('#3481B8')"],
["${DB_High_HN} > 70","color('#992572')"],
["${DB_High_HN} > 65","color('#8D1D2C')"],
["${DB_High_HN} > 60","color('#C1121C')"],
["${DB_High_HN} > 55","color('#FA842B')"],
["${DB_High_HN} > 50","color('#AF8A54')"],
["${DB_High_HN} > 45","color('#EAF044')"],
["${DB_High_HN} > 40","color('#026A52')"],
["${DB_High_HN} > 35","color('#48A43F')"],
["${DB_High_HN} <= 35","color('#B7D9B1')"]//,
//["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// ["true", "color('#FFFFFF')"],
],
},
});
clearInterval(timeout);
}
}, 1000);
} else if (areatime == "off"){
noisemap("offS")
}
}
function noisesens(status){
......
......@@ -15,6 +15,16 @@ var acc = document.getElementsByClassName("accordion");
function nordbahnview(){
var viewp = vcs.vcm.Framework.getInstance().viewpoints.NordBView
vcs.vcm.Framework.getInstance().getActiveMap().gotoViewPoint(viewp);
document.getElementById("UmfrageOne").style.display = "none";
document.getElementById("NordbahnhofInfo").style.display = "block";
document.getElementById("Navigation").style.display = "none";
document.getElementById("projektOne").style.display = "none";
document.getElementById("Energiekonzept").style.display = "none";
document.getElementById("IntroProj").style.display = "none";
document.getElementById("Expertenmodus").style.display = "block";
showgraph();
}
var expstate = false;
......
......@@ -246,8 +246,8 @@
} */
h1.sticky {
position: -webkit-sticky;
position: sticky;
/* position: -webkit-sticky;
position: sticky; */
height:35px;
top: 30px;
font-size: 20px;
......
......@@ -57,6 +57,13 @@ var layerfix04 = ["WMS layer"]
function showtourSpecific(specify) {
if (specify == 'menu'){
vcs.vcm.Framework.getInstance().getActiveMap().gotoViewPoint(vcs.vcm.Framework.getInstance().viewpoints.Böckingerstraße)
document.getElementById("Expertenmodus").style.display = "block";
} else if (specify == 'main'){
vcs.vcm.Framework.getInstance().getActiveMap().gotoViewPoint(vcs.vcm.Framework.getInstance().viewpoints.Böckingerstraße)
document.getElementById("Expertenmodus").style.display = "none";
var element = document.getElementById("icon_lock");
element.classList.add("fa-lock");
element.classList.remove("fa-unlock");
}
// var oldstuff = document.getElementById("old")
// var para = document.createElement("P");
......@@ -68,7 +75,7 @@ function showtourSpecific(specify) {
document.getElementById("Navigation").style.display = "none";
document.getElementById("projektOne").style.display = "block";
document.getElementById("IntroProj").style.display = "none";
document.getElementById("Expertenmodus").style.display = "none";
showTour();
......@@ -110,8 +117,11 @@ function showtourSpecific(specify) {
}
unhighlightStuff();
noisemap('offS')
expstate = true;
// expstate = true;
onoff()
document.getElementById('headOne').scrollIntoView({ left: 0, block: 'start', behavior: 'smooth' });
}
......@@ -161,7 +171,7 @@ function EnergiekonzeptFunction(content){
document.getElementById("projektOne").style.display = "none";
document.getElementById("Energiekonzept").style.display = "block";
document.getElementById("IntroProj").style.display = "none";
document.getElementById("Expertenmodus").style.display = "none";
document.getElementById("Expertenmodus").style.display = "block";
showTour();
if (content =="main"){
......@@ -261,16 +271,19 @@ function highlightFeatures(content){
function Questionnaire() {
document.getElementById("projektOne").style.display = "none";
document.getElementById("Energiekonzept").style.display = "none";
document.getElementById("NordbahnhofInfo").style.display = "none";
document.getElementById("NoiseInfo").style.display = "none";
document.getElementById("Navigation").style.display = "none";
document.getElementById("UmfrageOne").style.display = "block";
document.getElementById("IntroProj").style.display = "none";
document.getElementById("Expertenmodus").style.display = "none";
// document.getElementById("projektOne").style.display = "none";
// document.getElementById("Energiekonzept").style.display = "none";
// document.getElementById("NordbahnhofInfo").style.display = "none";
// document.getElementById("NoiseInfo").style.display = "none";
// document.getElementById("Navigation").style.display = "none";
// document.getElementById("UmfrageOne").style.display = "block";
// document.getElementById("IntroProj").style.display = "none";
// document.getElementById("Expertenmodus").style.display = "none";
showTour();
document.getElementById("btn_umfrage_bock").click();
document.getElementById('umfrage_bock').scrollIntoView({ left: 0, block: 'start', behavior: 'smooth' });
}
......@@ -285,6 +298,22 @@ function goHome(){
}
function Introshow(){
var comp = document.getElementsByClassName("compass");
comp[0].classList.add("leftstuff");
var comp1 = document.getElementsByClassName("control-box-container");
comp1[0].classList.add("leftstuff");
var comp2 = document.getElementsByClassName("shadow-control-box-wrap");
comp2[0].classList.add("leftstuff");
var comp3 = document.getElementById("widget-box");
comp3.classList.add("leftstuff");
document.getElementById("projektOne").style.display = "none";
document.getElementById("Energiekonzept").style.display = "none";
document.getElementById("UmfrageOne").style.display = "none";
......@@ -322,6 +351,10 @@ function Introshow(){
// document.getElementById("tour-frame").style.display = "block";
expstate = true;
onoff()
var element = document.getElementById("icon_lock");
element.classList.add("fa-lock");
element.classList.remove("fa-unlock");
}
function Navigationshow() {
......@@ -382,6 +415,10 @@ function NordbahnhofText() {
unhighlightStuff();
expstate = true;
onoff()
var element = document.getElementById("icon_lock");
element.classList.add("fa-lock");
element.classList.remove("fa-unlock");
}
......@@ -431,10 +468,85 @@ function NoiseText() {
noisemap('Streetday')
unhighlightStuff();
// HistNoiseData("49368");
var element = document.getElementById("icon_lock");
element.classList.add("fa-lock");
element.classList.remove("fa-unlock");
expstate = true;
onoff()
}
var layerIndexStuttgartTotal
var layernameStuttgartTotal = ["Streetday"]
var frameworkSTU = vcs.vcm.Framework.getInstance();
var layersSTU = frameworkSTU.getLayers();
for (var i = 0; i< layersSTU.length; i++) {
var layerst = layersSTU[i];
if(layernameStuttgartTotal.indexOf(layerst.name) >= 0) {
layerIndexStuttgartTotal = i
}}
var layerSTU = layersSTU[layerIndexStuttgartTotal];
var tilesetSTU = layerSTU.cesium3DTileset;
var timeout = setInterval(function() {
console.log(layerSTU.active)
if(layerSTU.active) {
console.log("")
tilesetSTU.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [
["${DB_High_LD} > 80","color('#1A5784')"],
["${DB_High_LD} > 79","color('#3481B8')"],
["${DB_High_LD} > 70","color('#992572')"],
["${DB_High_LD} > 65","color('#8D1D2C')"],
["${DB_High_LD} > 60","color('#C1121C')"],
["${DB_High_LD} > 55","color('#FA842B')"],
["${DB_High_LD} > 50","color('#AF8A54')"],
["${DB_High_LD} > 45","color('#EAF044')"],
["${DB_High_LD} > 40","color('#026A52')"],
["${DB_High_LD} > 35","color('#48A43F')"],
["${DB_High_LD} <= 35","color('#B7D9B1')"]//,
//["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// ["true", "color('#FFFFFF')"],
],
},
});
clearInterval(timeout);
}
}, 1000);
// if( layerSTU.active ) {
// tilesetSTU.style = new Cesium.Cesium3DTileStyle({
// color: {
// conditions: [
// ["${DB_High_LD} > 80","color('#1A5784')"],
// ["${DB_High_LD} > 79","color('#3481B8')"],
// ["${DB_High_LD} > 70","color('#992572')"],
// ["${DB_High_LD} > 65","color('#8D1D2C')"],
// ["${DB_High_LD} > 60","color('#C1121C')"],
// ["${DB_High_LD} > 55","color('#FA842B')"],
// ["${DB_High_LD} > 50","color('#AF8A54')"],
// ["${DB_High_LD} > 45","color('#EAF044')"],
// ["${DB_High_LD} > 40","color('#026A52')"],
// ["${DB_High_LD} > 35","color('#48A43F')"],
// ["${DB_High_LD} <= 35","color('#B7D9B1')"]//,
// //["${DB_High_LD} === 35","color('#B7D9B1','1')"]//,
// // ["true", "color('#FFFFFF')"],
// ],
// },
// });
// }
};
function Expert() {
document.getElementById("projektOne").style.display = "none";
......@@ -460,6 +572,7 @@ function Expert() {
var layer07 = ["LocationTwo"]
var layer08 = ["LocationOne"]
var layer09 = ["Questionnaire"]
var layer10 = ["ProjektOne"]
var framework = vcs.vcm.Framework.getInstance();
var layers = framework.getLayers();
......@@ -484,6 +597,8 @@ function Expert() {
layer.activate(true);
} else if (layer09.indexOf(layer.name) >= 0){
layer.activate(true);
} else if (layer10.indexOf(layer.name) >= 0){
layer.activate(true);
} else if (layerfix.indexOf(layer.name) >= 0){
layer.activate(true);
} else if (layerfix01.indexOf(layer.name) >= 0){
......@@ -499,6 +614,10 @@ function Expert() {
}
}
var element = document.getElementById("icon_lock");
element.classList.remove("fa-lock");
element.classList.add("fa-unlock");
unhighlightStuff();
// HistNoiseData("49368");
}
......@@ -4,6 +4,7 @@ var heatdemVal03 = 300
var heatdemVal04 = 400
function removebuildings() {
var layerIndexStuttgartTotal
var layerIndexStuttgartBahnhof
var layernameStuttgartTotal = ["StuttgartLocal"]
......
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