Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Rushikesh Padsala
Rotterdam3D
Commits
20b6371b
Commit
20b6371b
authored
Dec 21, 2021
by
Rushikesh Padsala
Browse files
Update App.js
parent
74d235ca
Pipeline
#5718
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/Source/App.js
View file @
20b6371b
...
...
@@ -190,15 +190,32 @@ function active3DTilePicker() {
return
;
}
// A feature was picked, so show it's overlay content
nameOverlay
.
style
.
display
=
'
block
'
;
nameOverlay
.
style
.
display
=
'
block
'
;
nameOverlay
.
style
.
bottom
=
viewer
.
canvas
.
clientHeight
-
movement
.
endPosition
.
y
+
'
px
'
;
nameOverlay
.
style
.
left
=
movement
.
endPosition
.
x
+
'
px
'
;
var
name
=
picked3DtileFeature
.
getProperty
(
'
feature_type
'
);
var
name
=
picked3DtileFeature
.
getProperty
(
'
feature_type
'
);
var
name1
=
picked3DtileFeature
.
getProperty
(
'
gml_id
'
);
var
name2
=
picked3DtileFeature
.
getProperty
(
'
Irr_kWh
'
);
var
name3
=
picked3DtileFeature
.
getProperty
(
'
PVPotential
'
);
if
(
colorstyle1
.
checked
)
{
if
(
!
Cesium
.
defined
(
name
))
{
name
=
picked3DtileFeature
.
getProperty
(
'
feature_type
'
);
}
nameOverlay
.
textContent
=
name
;
}
else
if
(
colorstyle2
.
checked
)
{
if
(
!
Cesium
.
defined
(
name
))
{
name
=
picked3DtileFeature
.
getProperty
(
'
feature_type
'
);
name
=
picked3DtileFeature
.
getProperty
(
'
gml_id
'
);
}
nameOverlay
.
textContent
=
name1
+
'
'
+
name2
+
'
'
+
'
kWh/(m².a)
'
;
}
else
if
(
colorstyle3
.
checked
){
if
(
!
Cesium
.
defined
(
name
))
{
name
=
picked3DtileFeature
.
getProperty
(
'
gml_id
'
);
}
nameOverlay
.
textContent
=
name
;
nameOverlay
.
textContent
=
name
1
+
'
'
+
name3
+
'
'
+
'
MWh/a
'
;
}
// Highlight the feature if it's not already selected.
if
(
picked3DtileFeature
!==
selected
.
feature
)
{
highlighted
.
feature
=
picked3DtileFeature
;
...
...
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