Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCity
EnergyDashboard
Commits
a828b374
Commit
a828b374
authored
Jun 02, 2021
by
Pithon Kabiro
Browse files
Edit feature infobox to match properties available in new 3dTiles
parent
1da3dddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/appCesium.js
View file @
a828b374
...
...
@@ -184,7 +184,7 @@ const activate3DTileFeaturePicking = function () {
nameOverlay
.
style
.
bottom
=
viewer
.
canvas
.
clientHeight
-
movement
.
endPosition
.
y
+
"
px
"
;
nameOverlay
.
style
.
left
=
movement
.
endPosition
.
x
+
"
px
"
;
let
name
=
pickedFeature
.
getProperty
(
"
nam
e
"
);
let
name
=
pickedFeature
.
getProperty
(
"
_gebaeud
e
"
);
if
(
!
Cesium
.
defined
(
name
))
{
name
=
pickedFeature
.
getProperty
(
"
id
"
);
}
...
...
@@ -234,22 +234,19 @@ const activate3DTileFeaturePicking = function () {
<table class="cesium-infoBox-defaultTable">
<tbody>
<tr><th>Bau</th><td>
${
pickedFeature
.
getProperty
(
"
BIN
"
)}
${
pickedFeature
.
getProperty
(
"
_gebaeude
"
)}
</td></tr>
<tr><th>Nutzung</th><td>
${
pickedFeature
.
getProperty
(
"
DOITT_ID
"
)}
${
pickedFeature
.
getProperty
(
"
_nutzung
"
)}
</td></tr>
<tr><th>Baujahr</th><td>
${
pickedFeature
.
getProperty
(
"
SOURCE_ID
"
)}
${
pickedFeature
.
getProperty
(
"
_baujahr
"
)}
</td></tr>
<tr><th>Geschosse</th><td>
${
pickedFeature
.
getProperty
(
"
longitud
e
"
)}
${
pickedFeature
.
getProperty
(
"
_geschoss
e
"
)}
</td></tr>
<tr><th>Gebäudefläche</th><td>
${
pickedFeature
.
getProperty
(
"
latitude
"
)}
</td></tr>
<tr><th>Gebäudevolumen</th><td>
${
pickedFeature
.
getProperty
(
"
height
"
)}
<tr><th>Gebäudefläche (m<sup>2</sup>)</th><td>
${
pickedFeature
.
getProperty
(
"
_gebaeudeflaeche
"
)}
</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