Skip to content
GitLab
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
Show whitespace changes
Inline
Side-by-side
public/js/appCesium.js
View file @
a828b374
...
@@ -184,7 +184,7 @@ const activate3DTileFeaturePicking = function () {
...
@@ -184,7 +184,7 @@ const activate3DTileFeaturePicking = function () {
nameOverlay
.
style
.
bottom
=
nameOverlay
.
style
.
bottom
=
viewer
.
canvas
.
clientHeight
-
movement
.
endPosition
.
y
+
"
px
"
;
viewer
.
canvas
.
clientHeight
-
movement
.
endPosition
.
y
+
"
px
"
;
nameOverlay
.
style
.
left
=
movement
.
endPosition
.
x
+
"
px
"
;
nameOverlay
.
style
.
left
=
movement
.
endPosition
.
x
+
"
px
"
;
let
name
=
pickedFeature
.
getProperty
(
"
nam
e
"
);
let
name
=
pickedFeature
.
getProperty
(
"
_gebaeud
e
"
);
if
(
!
Cesium
.
defined
(
name
))
{
if
(
!
Cesium
.
defined
(
name
))
{
name
=
pickedFeature
.
getProperty
(
"
id
"
);
name
=
pickedFeature
.
getProperty
(
"
id
"
);
}
}
...
@@ -234,22 +234,19 @@ const activate3DTileFeaturePicking = function () {
...
@@ -234,22 +234,19 @@ const activate3DTileFeaturePicking = function () {
<table class="cesium-infoBox-defaultTable">
<table class="cesium-infoBox-defaultTable">
<tbody>
<tbody>
<tr><th>Bau</th><td>
<tr><th>Bau</th><td>
${
pickedFeature
.
getProperty
(
"
BIN
"
)}
${
pickedFeature
.
getProperty
(
"
_gebaeude
"
)}
</td></tr>
</td></tr>
<tr><th>Nutzung</th><td>
<tr><th>Nutzung</th><td>
${
pickedFeature
.
getProperty
(
"
DOITT_ID
"
)}
${
pickedFeature
.
getProperty
(
"
_nutzung
"
)}
</td></tr>
</td></tr>
<tr><th>Baujahr</th><td>
<tr><th>Baujahr</th><td>
${
pickedFeature
.
getProperty
(
"
SOURCE_ID
"
)}
${
pickedFeature
.
getProperty
(
"
_baujahr
"
)}
</td></tr>
</td></tr>
<tr><th>Geschosse</th><td>
<tr><th>Geschosse</th><td>
${
pickedFeature
.
getProperty
(
"
longitud
e
"
)}
${
pickedFeature
.
getProperty
(
"
_geschoss
e
"
)}
</td></tr>
</td></tr>
<tr><th>Gebäudefläche</th><td>
<tr><th>Gebäudefläche (m<sup>2</sup>)</th><td>
${
pickedFeature
.
getProperty
(
"
latitude
"
)}
${
pickedFeature
.
getProperty
(
"
_gebaeudeflaeche
"
)}
</td></tr>
<tr><th>Gebäudevolumen</th><td>
${
pickedFeature
.
getProperty
(
"
height
"
)}
</td></tr>
</td></tr>
</tbody>
</tbody>
</table>
</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