Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
3DClient4SimStadtAPI
Commits
84e8a921
Commit
84e8a921
authored
Jan 17, 2022
by
Kolokolnikova
Browse files
Displaying of selected surfacePvPotential value
parent
8b532b40
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/globe.js
View file @
84e8a921
...
...
@@ -244,7 +244,7 @@ var pickRoofType
var
pickUValue
var
shadowHourValue
=
0
;
var
SurfacePvPotential
=
[]
;
var
SurfacePvPotential
;
var
SurfacePvPotentialObject
=
[];
//object which stores all the pvPotential data
...
...
@@ -367,8 +367,8 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) {
normalizedPvValue
=
getNormalizedValue
(
chosenPvPotentialValue
);
console
.
log
(
"
normalisierter
"
,
normalizedPvValue
);
t
.
color
=
Cesium
.
Color
.
fromCssColorString
(
getColorFromPalette
(
normalizedPvValue
,
"
pvPotential
"
));
//coloring the surface
// SurfacePvPotential = value["attributes"]["pvPotential"][chosenAttributeRadioBtnFlag];
SurfacePvPotential
=
chosenPvPotentialValue
;
SurfacePvPotentialObject
=
value
[
"
attributes
"
][
"
pvPotential
"
];
console
.
log
(
SurfacePvPotentialObject
);
}
...
...
@@ -403,7 +403,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) {
"
<tr><th>description</th><td>
"
+
pickedFeature
.
getProperty
(
"
description
"
)
+
"
</td></tr>
"
+
"
<tr><th>feature_type</th><td>
"
+
pickedFeature
.
getProperty
(
"
feature_type
"
)
+
"
</td></tr>
"
+
"
<tr><th>shadow value</th><td>
"
+
shadowhourvaluepercent
.
toFixed
(
1
)
+
"
%
"
+
"
</td></tr>
"
+
"
<tr><th>
totalInvestment
</th><td>
"
+
SurfacePvPotential
+
"
</td></tr>
"
+
"
<tr><th>
"
+
chosenAttributeRadioBtnFlag
+
"
</th><td>
"
+
SurfacePvPotential
+
"
</td></tr>
"
+
"
</tbody></table>
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment