Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IN-SOURCE
Meidling 3D Viewer
Commits
92d14bbe
Commit
92d14bbe
authored
Nov 26, 2020
by
Rushikesh Padsala
Browse files
Update App.js
parent
576b217e
Pipeline
#1370
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/App.js
View file @
92d14bbe
...
...
@@ -64,7 +64,7 @@ var initialPosition = Cesium.Cartesian3.fromDegrees(16.368084, 48.183257, 360);
var
building
=
viewer
.
scene
.
primitives
.
add
(
new
Cesium
.
Cesium3DTileset
({
url
:
'
https://w2.iaf.hft-stuttgart.de/CesiumData/3DTiles/Buildings/BuildingSolid/Meidling_Vienna/tileset.json
'
}));
var
outdoorbuildinginstallation
=
viewer
.
scene
.
primitives
.
add
(
new
Cesium
.
Cesium3DTileset
({
url
:
'
https://w2.iaf.hft-stuttgart.de/CesiumData/3DTiles/Buildings/BuildingInstallation/Meidling_Vienna/tileset.json
'
}));
var
roofsurface
=
viewer
.
scene
.
primitives
.
add
(
new
Cesium
.
Cesium3DTileset
({
url
:
'
https://w2.iaf.hft-stuttgart.de/CesiumData/3DTiles/Buildings/RoofSurface/Mediling_Vienna/tileset.json
'
}));
var
roofdefaultstyle
=
new
Cesium
.
Cesium3DTileStyle
({
color
:
"
color('#
EA9999
')
"
});
var
roofdefaultstyle
=
new
Cesium
.
Cesium3DTileStyle
({
color
:
"
color('#
990000
')
"
});
roofsurface
.
style
=
roofdefaultstyle
;
// set roof height and load roof tile
roofsurface
.
readyPromise
.
then
(
function
(
tileset
)
{
...
...
@@ -265,7 +265,7 @@ function active3DTilePicker() {
if
(
picked3DtileFeature
!==
selected
.
feature
)
{
highlighted
.
feature
=
picked3DtileFeature
;
Cesium
.
Color
.
clone
(
picked3DtileFeature
.
color
,
highlighted
.
originalColor
);
picked3DtileFeature
.
color
=
Cesium
.
Color
.
AZURE
;
picked3DtileFeature
.
color
=
Cesium
.
Color
.
BLANCHEDALMOND
;
}
}
},
Cesium
.
ScreenSpaceEventType
.
MOUSE_MOVE
);
...
...
@@ -299,7 +299,7 @@ function active3DTilePicker() {
Cesium
.
Color
.
clone
(
picked3DtileFeature
.
color
,
selected
.
originalColor
);
}
// Highlight newly selected feature
picked3DtileFeature
.
color
=
Cesium
.
Color
.
AZURE
;
picked3DtileFeature
.
color
=
Cesium
.
Color
.
BLANCHEDALMOND
;
// Set feature infobox description - if condition is for different info box for different entities such as building solids, roofs, landuse etc
if
(
picked3DtileFeature
.
getProperty
(
'
SemanticType
'
)
===
"
Building
"
)
{
...
...
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