Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
3 years ago
by
Kolokolnikova
Browse files
Options
Download
Email Patches
Plain Diff
Displaying of selected surfacePvPotential value
parent
8b532b40
master
dev
1 merge request
!1
Finale Merge of the dev branch into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/globe.js
+4
-4
public/js/globe.js
with
4 additions
and
4 deletions
+4
-4
public/js/globe.js
+
4
-
4
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>
"
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets