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
dfe589e0
Commit
dfe589e0
authored
Oct 01, 2024
by
Santhanavanich
Browse files
update
parent
b5749368
Changes
3
Show whitespace changes
Inline
Side-by-side
public/bus_location/index.css
0 → 100644
View file @
dfe589e0
/* Remove Cesium Clock and Credit */
.cesium-credit-textContainer
{
display
:
none
!important
;
}
.cesium-credit-expand-link
{
display
:
none
!important
;
}
.cesium-viewer-animationContainer
{
display
:
none
!important
;
}
.cesium-viewer-bottom
{
display
:
none
!important
;
}
\ No newline at end of file
public/bus_location/index.html
0 → 100644
View file @
dfe589e0
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Cesium Bus Visualization
</title>
<script
src=
"https://cesium.com/downloads/cesiumjs/releases/1.110/Build/Cesium/Cesium.js"
></script>
<link
href=
"https://cesium.com/downloads/cesiumjs/releases/1.110/Build/Cesium/Widgets/widgets.css"
rel=
"stylesheet"
>
<style>
#cesiumContainer
{
width
:
100%
;
height
:
100vh
;
margin
:
0
;
padding
:
0
;
}
.cesium-credit-textContainer
{
display
:
none
!important
;
}
.cesium-credit-expand-link
{
display
:
none
!important
;
}
.cesium-viewer-animationContainer
{
display
:
none
!important
;
}
.cesium-viewer-bottom
{
display
:
none
!important
;
}
</style>
</head>
<body
style=
"margin: 0;"
>
<div
id=
"cesiumContainer"
></div>
<script
src=
"pack-min.js"
></script>
</body>
</html>
\ No newline at end of file
public/bus_location/pack-min.js
0 → 100644
View file @
dfe589e0
(
function
(
_0x384166
,
_0x3de679
){
const
_0x50c8b5
=
_0x2726
,
_0x8697
=
_0x384166
();
while
(
!!
[]){
try
{
const
_0x5bb623
=
parseInt
(
_0x50c8b5
(
0xd5
))
/
0x1
*
(
parseInt
(
_0x50c8b5
(
0xb5
))
/
0x2
)
+-
parseInt
(
_0x50c8b5
(
0xd2
))
/
0x3
+
parseInt
(
_0x50c8b5
(
0xd9
))
/
0x4
+-
parseInt
(
_0x50c8b5
(
0xdc
))
/
0x5
*
(
parseInt
(
_0x50c8b5
(
0xc6
))
/
0x6
)
+
parseInt
(
_0x50c8b5
(
0xb9
))
/
0x7
*
(
parseInt
(
_0x50c8b5
(
0xb3
))
/
0x8
)
+-
parseInt
(
_0x50c8b5
(
0xb8
))
/
0x9
+-
parseInt
(
_0x50c8b5
(
0xc4
))
/
0xa
;
if
(
_0x5bb623
===
_0x3de679
)
break
;
else
_0x8697
[
'
push
'
](
_0x8697
[
'
shift
'
]());}
catch
(
_0x309780
){
_0x8697
[
'
push
'
](
_0x8697
[
'
shift
'
]());}}}(
_0x4370
,
0x46c8d
));
async
function
initializeCesium
(){
const
_0x2aa14b
=
_0x2726
;
Cesium
[
_0x2aa14b
(
0xc3
)][
_0x2aa14b
(
0xc2
)]
=
_0x2aa14b
(
0xb6
);
const
_0x2e849c
=
await
Cesium
[
_0x2aa14b
(
0xb1
)][
_0x2aa14b
(
0xbe
)](
0x1
),
_0x403fa0
=
new
Cesium
[
'
Viewer
'
](
_0x2aa14b
(
0xa9
),{
'
terrainProvider
'
:
_0x2e849c
,
'
timeline
'
:
!
0x1
});
_0x403fa0
[
'
camera
'
][
_0x2aa14b
(
0xd6
)]({
'
destination
'
:{
'
x
'
:
-
3453815.8598039756
,
'
y
'
:
4039041.1040256466
,
'
z
'
:
3525729.0810824716
},
'
orientation
'
:{
'
direction
'
:{
'
x
'
:
0.3332048761735734
,
'
y
'
:
-
0.8864168943483531
,
'
z
'
:
0.3213091967373082
},
'
up
'
:{
'
x
'
:
-
0.4270201360004994
,
'
y
'
:
0.1619532675365034
,
'
z
'
:
0.8896206734245584
}}});
const
_0x54a7cc
=
await
Cesium
[
_0x2aa14b
(
0xad
)][
_0x2aa14b
(
0xbe
)](
0x27b533
);
async
function
_0x2b77e9
(){
const
_0x5415b6
=
_0x2aa14b
;
try
{
_0x403fa0
[
_0x5415b6
(
0xbd
)][
_0x5415b6
(
0xd0
)]();
const
_0x39526d
=
await
fetch
(
_0x5415b6
(
0xac
));(
await
_0x39526d
[
'
json
'
]())[
_0x5415b6
(
0xcf
)](
_0x22e064
=>
{
const
_0x5c13b6
=
_0x5415b6
,
_0x26275a
=
Cesium
[
'
Cartesian3
'
][
_0x5c13b6
(
0xdd
)](
parseFloat
(
_0x22e064
[
_0x5c13b6
(
0xda
)]),
parseFloat
(
_0x22e064
[
_0x5c13b6
(
0xbf
)]));
_0x403fa0
[
_0x5c13b6
(
0xbd
)][
_0x5c13b6
(
0xc7
)]({
'
position
'
:
_0x26275a
,
'
billboard
'
:{
'
image
'
:
_0x4e2e80
(),
'
width
'
:
0x190
,
'
height
'
:
0x64
,
'
verticalOrigin
'
:
Cesium
[
_0x5c13b6
(
0xae
)][
_0x5c13b6
(
0xb4
)],
'
pixelOffset
'
:
new
Cesium
[
'
Cartesian2
'
](
0x0
,
-
0x14
),
'
heightReference
'
:
Cesium
[
'
HeightReference
'
][
_0x5c13b6
(
0xcc
)]}}),
_0x403fa0
[
_0x5c13b6
(
0xbd
)][
_0x5c13b6
(
0xc7
)]({
'
position
'
:
_0x26275a
,
'
point
'
:{
'
pixelSize
'
:
0xa
,
'
color
'
:
Cesium
[
_0x5c13b6
(
0xd1
)][
'
RED
'
],
'
heightReference
'
:
Cesium
[
_0x5c13b6
(
0xb7
)][
_0x5c13b6
(
0xcc
)]},
'
label
'
:{
'
text
'
:
_0x22e064
[
_0x5c13b6
(
0xaf
)]
+
'
\
x20
\
x0aStatus:
\
x20
'
+
_0x22e064
[
'
current_status
'
]
+
_0x5c13b6
(
0xb2
)
+
_0x22e064
[
_0x5c13b6
(
0xbb
)]
+
_0x5c13b6
(
0xc1
)
+
_0x22e064
[
'
route_name
'
],
'
font
'
:
_0x5c13b6
(
0xc0
),
'
style
'
:
Cesium
[
_0x5c13b6
(
0xdb
)][
_0x5c13b6
(
0xd7
)],
'
fillColor
'
:
Cesium
[
'
Color
'
][
_0x5c13b6
(
0xd3
)],
'
outlineColor
'
:
Cesium
[
_0x5c13b6
(
0xd1
)][
_0x5c13b6
(
0xba
)],
'
outlineWidth
'
:
0x3
,
'
verticalOrigin
'
:
Cesium
[
_0x5c13b6
(
0xae
)][
'
BOTTOM
'
],
'
pixelOffset
'
:
new
Cesium
[(
_0x5c13b6
(
0xd4
))](
0x0
,
-
0x14
),
'
heightReference
'
:
Cesium
[
_0x5c13b6
(
0xb7
)][
_0x5c13b6
(
0xcc
)]}});});}
catch
(
_0x444e45
){
console
[
_0x5415b6
(
0xd8
)](
_0x5415b6
(
0xcb
),
_0x444e45
);}}
function
_0x4e2e80
(){
const
_0x5b0b45
=
_0x2aa14b
,
_0x5ad6b3
=
document
[
_0x5b0b45
(
0xc8
)](
_0x5b0b45
(
0xcd
));
_0x5ad6b3
[
_0x5b0b45
(
0xbc
)]
=
0x190
,
_0x5ad6b3
[
_0x5b0b45
(
0xb0
)]
=
0xc8
;
const
_0x525bea
=
_0x5ad6b3
[
_0x5b0b45
(
0xab
)](
'
2d
'
);
return
_0x525bea
[
_0x5b0b45
(
0xc9
)]
=
_0x5b0b45
(
0xa8
),
_0x525bea
[
_0x5b0b45
(
0xaa
)](
0x0
,
0x0
,
_0x5ad6b3
[
_0x5b0b45
(
0xbc
)],
_0x5ad6b3
[
_0x5b0b45
(
0xb0
)]),
_0x5ad6b3
[
_0x5b0b45
(
0xca
)]();}
_0x403fa0
[
_0x2aa14b
(
0xc5
)][
_0x2aa14b
(
0xce
)][
_0x2aa14b
(
0xc7
)](
_0x54a7cc
),
_0x2b77e9
(),
setInterval
(
_0x2b77e9
,
0x7530
);}
initializeCesium
();
function
_0x2726
(
_0x2419db
,
_0x481be6
){
const
_0x43705c
=
_0x4370
();
return
_0x2726
=
function
(
_0x27269a
,
_0x195534
){
_0x27269a
=
_0x27269a
-
0xa8
;
let
_0x144215
=
_0x43705c
[
_0x27269a
];
return
_0x144215
;},
_0x2726
(
_0x2419db
,
_0x481be6
);}
function
_0x4370
(){
const
_0x10ea2b
=
[
'
toDataURL
'
,
'
Error
\
x20loading
\
x20bus
\
x20data:
'
,
'
CLAMP_TO_GROUND
'
,
'
canvas
'
,
'
primitives
'
,
'
forEach
'
,
'
removeAll
'
,
'
Color
'
,
'
421374SypaJB
'
,
'
WHITE
'
,
'
Cartesian2
'
,
'
949FbvGDc
'
,
'
setView
'
,
'
FILL_AND_OUTLINE
'
,
'
error
'
,
'
2109552BNlfyp
'
,
'
longitude
'
,
'
LabelStyle
'
,
'
435605ogLDJt
'
,
'
fromDegrees
'
,
'
rgba(0,
\
x200,
\
x200,
\
x200.5)
'
,
'
cesiumContainer
'
,
'
fillRect
'
,
'
getContext
'
,
'
https://huebner-ai.sally-studio.com/udigit_buses_data
'
,
'
Cesium3DTileset
'
,
'
VerticalOrigin
'
,
'
bus_id
'
,
'
height
'
,
'
CesiumTerrainProvider
'
,
'
\
x20
\
x0aBattery:
\
x20
'
,
'
80VGzQrL
'
,
'
BOTTOM
'
,
'
796QtVCvP
'
,
'
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJmNDI1ZTg5OC05MWU1LTQ5YTYtOTEyZS1mODk1ODZiZGRhMjgiLCJpZCI6MTcxNDQsImlhdCI6MTY4MDIwNTA2MX0.fM4zc4RUfbrgLvaD4FXP-EUNMceSRA1ILRt2qVNACpc
'
,
'
HeightReference
'
,
'
2674683huYDUl
'
,
'
133833DWoDpr
'
,
'
BLACK
'
,
'
speed
'
,
'
width
'
,
'
entities
'
,
'
fromIonAssetId
'
,
'
latitude
'
,
'
16pt
\
x20Arial
'
,
'
%
\
x20
\
x0aRoute:
\
x20
'
,
'
defaultAccessToken
'
,
'
Ion
'
,
'
2815810KXZPLM
'
,
'
scene
'
,
'
6gIhryk
'
,
'
add
'
,
'
createElement
'
,
'
fillStyle
'
];
_0x4370
=
function
(){
return
_0x10ea2b
;};
return
_0x4370
();}
\ No newline at end of file
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