Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
3DClient4SimStadtAPI
Commits
980a8b0c
Commit
980a8b0c
authored
Dec 06, 2021
by
Izairi
Browse files
added percent shadowvalue
parent
58011595
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/globe.js
View file @
980a8b0c
...
...
@@ -126,7 +126,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onMouseMove(movement) {
var
name
=
pickedFeature
.
getProperty
(
"
gml_id
"
);
nameOverlay
.
textContent
=
"
ID:
"
+
name
+
"
\t
shadowvalue:
"
+
shadow
H
our
V
alue
;
nameOverlay
.
textContent
=
"
ID:
"
+
name
+
"
\t
shadowvalue:
"
+
shadow
h
our
v
alue
percent
;
// Highlight the feature if it's not already selected.
selectedFeatures
.
forEach
(
s
=>
{
if
(
s
.
feature
===
pickedFeature
)
{
...
...
@@ -266,7 +266,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) {
pickTotalSurfaceArea
=
0
pickRoofType
=
"
Not Defined
"
pickUValue
=
"
Not Defined
"
//fill variables for Single Building Properties
fillTableProperties
(
gmlID
,
surID
)
...
...
@@ -317,7 +317,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) {
});
}
var
shadowhourvaluepercent
=
100
-
(
shadowHourValue
*
100
)
//set feature infobox description (surface view)
var
featureName
=
pickedFeature
.
getProperty
(
"
name
"
);
selectedEntity
.
name
=
featureName
;
...
...
@@ -329,7 +329,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) {
"
<tr><th>u_Value</th><td>
"
+
pickUValue
+
"
</td></tr>
"
+
"
<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>
"
+
shadow
H
our
V
alue
+
"
</td></tr>
"
+
"
<tr><th>shadow value</th><td>
"
+
shadow
h
our
v
alue
percent
.
toFixed
(
1
)
+
"
%
"
+
"
</td></tr>
"
+
"
</tbody></table>
"
;
...
...
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