Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCityDigitalTwinFramework
applications
Commits
990246f2
Commit
990246f2
authored
Aug 19, 2022
by
JOE XMG
Browse files
update
parent
1d7a2563
Pipeline
#6873
passed with stage
in 21 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
990246f2
...
...
@@ -2,3 +2,4 @@
This project contains an application use case to demonstrate the framework/ infrastructure of urban digital twins.
![
Demo
](
public/img/demo.jpg
"A protytype application"
)
\ No newline at end of file
public/dashboard/assets/js/cesium_00_Main.js
View file @
990246f2
...
...
@@ -144,7 +144,25 @@ var hide_utiltiy_line = function () {
}
}
viewer
.
camera
.
setView
({
"
destination
"
:{
"
x
"
:
-
3447610.163256134
,
"
y
"
:
4035558.08021155
,
"
z
"
:
3526721.814467922
},
"
orientation
"
:{
"
direction
"
:{
"
x
"
:
-
0.3228353906545565
,
"
y
"
:
-
0.9232459949887203
,
"
z
"
:
0.2083126095036207
},
"
up
"
:{
"
x
"
:
-
0.663817634371156
,
"
y
"
:
0.3777599007354034
,
"
z
"
:
0.6454793611683185
}}})
viewer
.
camera
.
setView
({
"
destination
"
:
{
"
x
"
:
-
3447610.163256134
,
"
y
"
:
4035558.08021155
,
"
z
"
:
3526721.814467922
},
"
orientation
"
:
{
"
direction
"
:
{
"
x
"
:
-
0.3228353906545565
,
"
y
"
:
-
0.9232459949887203
,
"
z
"
:
0.2083126095036207
},
"
up
"
:
{
"
x
"
:
-
0.663817634371156
,
"
y
"
:
0.3777599007354034
,
"
z
"
:
0.6454793611683185
}
}
})
var
building_style
=
[]
var
addBuilding
=
function
()
{
...
...
@@ -218,7 +236,6 @@ var addBuilding = function () {
}
});
building_style
[
"
ElecDemand
"
]
=
new
Cesium
.
Cesium3DTileStyle
({
pointSize
:
'
3.0
'
,
show
:
true
,
color
:
{
"
conditions
"
:
[
...
...
@@ -232,7 +249,22 @@ var addBuilding = function () {
]
}
});
tileset_3Dbuildings
.
style
=
building_style
[
"
AllWhite
"
];
building_style
[
"
height
"
]
=
new
Cesium
.
Cesium3DTileStyle
({
show
:
true
,
color
:
{
"
conditions
"
:
[
[
"
Number(${計測高さ}) < 5
"
,
"
color('#ffffcc')
"
],
[
"
Number(${計測高さ}) < 10
"
,
"
color('#a1dab4')
"
],
[
"
Number(${計測高さ}) < 20
"
,
"
color('#41b6c4')
"
],
[
"
Number(${計測高さ}) < 30
"
,
"
color('#2c7fb8')
"
],
[
"
Number(${計測高さ}) >= 30
"
,
"
color('#253494')
"
],
[
"
true
"
,
"
color('#E8F1F2', 0.5)
"
]
]
}
});
// tileset_3Dbuildings.style = building_style["AllWhite"];
tileset_3Dbuildings
.
style
=
building_style
[
"
height
"
];
};
addBuilding
();
...
...
@@ -366,5 +398,3 @@ $("#shadow_check").change(function () {
// }
// }
// });
\ No newline at end of file
public/dashboard/assets/style/style.xlsx
0 → 100644
View file @
990246f2
File added
public/img/demo.jpg
0 → 100644
View file @
990246f2
340 KB
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