Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
df-aggregator
Commits
7abcdb6e
Commit
7abcdb6e
authored
Dec 24, 2020
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Loading Spinner
parent
3a75550e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
8 deletions
+35
-8
style.css
static/style.css
+21
-0
cesium.tpl
views/cesium.tpl
+14
-8
No files found.
static/style.css
View file @
7abcdb6e
...
...
@@ -119,6 +119,27 @@ span {
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown
:hover
.dropbtn
{
background-color
:
#111
;}
.loader
{
border
:
22px
solid
#e9e9e9
;
/* Light grey */
border-top
:
22px
solid
#101010
;
/* Dark Grey */
border-radius
:
50%
;
width
:
160px
;
height
:
160px
;
animation
:
spin
1s
linear
infinite
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
margin-top
:
-91px
;
margin-left
:
-91px
;
z-index
:
0
;
visibility
:
hidden
;
opacity
:
0.7
;
}
@keyframes
spin
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
/*Slider Stuff*/
.slidecontainer
{
...
...
views/cesium.tpl
View file @
7abcdb6e
...
...
@@ -33,6 +33,7 @@
<link
href=
"/static/menu.css"
rel=
"stylesheet"
>
</head>
<body
onload=
"loadRx(createReceivers); loadAoi(createAois);"
>
<div
id=
"loader"
class=
"loader"
></div>
<div
id=
"cesiumContainer"
>
</div>
...
...
@@ -227,14 +228,19 @@
}
function
loadTxCzml
()
{
transmittersDataSource
.
load
(
'/output.czml'
);
viewer
.
dataSources
.
add
(
transmittersDataSource
);
return
transmittersDataSource
;
// let promise1 = Cesium.CzmlDataSource.load('/output.czml');
// Cesium.when(promise1, function(dataSource1){
// viewer.dataSources.add(dataSource1);
// return dataSource1;
// });
let
spinner
=
document
.
getElementById
(
"loader"
);
spinner
.
style
.
visibility
=
"visible"
;
spinner
.
style
.
zIndex
=
"10"
;
// transmittersDataSource.load('/output.czml');
// viewer.dataSources.add(transmittersDataSource);
// return transmittersDataSource;
let
promise1
=
Cesium
.
CzmlDataSource
.
load
(
'/output.czml'
);
Cesium
.
when
(
promise1
,
function
(
dataSource1
){
viewer
.
dataSources
.
add
(
dataSource1
);
spinner
.
style
.
visibility
=
"hidden"
;
spinner
.
style
.
zIndex
=
"0"
;
return
dataSource1
;
});
}
function
loadRxCzml
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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