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
ff1eb6ed
Commit
ff1eb6ed
authored
Dec 11, 2020
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New Feature Prep
parent
06a27d69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
10 deletions
+115
-10
menu.css
static/menu.css
+8
-1
receiver_configurator.js
static/receiver_configurator.js
+1
-1
cesium.tpl
views/cesium.tpl
+106
-8
No files found.
static/menu.css
View file @
ff1eb6ed
...
...
@@ -152,7 +152,7 @@ body {
display
:
block
;
position
:
absolute
;
bottom
:
7px
;
right
:
30
px
;
right
:
5
px
;
font-size
:
23pt
;
}
...
...
@@ -186,3 +186,10 @@ body {
user-select
:
none
;
/* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
.menusections
{
position
:
relative
;
padding-bottom
:
35px
;
/* border: 1px solid #CCC; */
margin-top
:
26px
;
}
static/receiver_configurator.js
View file @
ff1eb6ed
...
...
@@ -362,7 +362,7 @@ function createReceivers(rx_json, id) {
headingspan
.
id
=
receivers
[
i
].
uid
+
"-heading"
;
freqspan
.
id
=
receivers
[
i
].
uid
+
"-freq"
;
document
.
getElementById
(
"
menu
"
).
insertBefore
(
rxcard
,
document
.
getElementById
(
"add_station"
));
document
.
getElementById
(
"
rxcards
"
).
insertBefore
(
rxcard
,
document
.
getElementById
(
"add_station"
));
// rxcard.appendChild(urlspan);
rxcard
.
appendChild
(
mobilespan
);
...
...
views/cesium.tpl
View file @
ff1eb6ed
...
...
@@ -23,9 +23,11 @@
Cesium
.
Ion
.
defaultAccessToken
=
'{
{
access_token
}
}'
;
// var hpr = new Cesium.HeadingPitchRange(0, 40, 0)
var
viewer
=
new
Cesium
.
Viewer
(
'cesiumContainer'
,
{
terrainProvider
:
Cesium
.
createWorldTerrain
(),
//
terrainProvider: Cesium.createWorldTerrain(),
homeButton
:
false
,
timeline
:
false
timeline
:
false
,
selectionIndicator
:
false
,
infoBox
:
false
,
});
var
clock
=
new
Cesium
.
Clock
({
clockStep
:
Cesium
.
ClockStep
.
SYSTEM_CLOCK_MULTIPLIER
...
...
@@ -34,6 +36,59 @@
viewer
.
clock
.
shouldAnimate
=
true
;
viewer
.
zoomTo
(
loadAllCzml
());
var
scene
=
viewer
.
scene
;
if
(
!
scene
.
pickPositionSupported
)
{
window
.
alert
(
"This browser does not support pickPosition."
);
}
var
handler
;
function
hovercoords
()
{
var
entity
=
viewer
.
entities
.
add
({
label
:
{
show
:
false
,
showBackground
:
true
,
font
:
"14px monospace"
,
horizontalOrigin
:
Cesium
.
HorizontalOrigin
.
LEFT
,
verticalOrigin
:
Cesium
.
VerticalOrigin
.
BOTTOM
,
pixelOffset
:
new
Cesium
.
Cartesian2
(
15
,
0
),
},
});
// Mouse over the globe to see the cartographic position
handler
=
new
Cesium
.
ScreenSpaceEventHandler
(
scene
.
canvas
);
handler
.
setInputAction
(
function
(
movement
)
{
var
cartesian
=
viewer
.
camera
.
pickEllipsoid
(
movement
.
endPosition
,
scene
.
globe
.
ellipsoid
);
if
(
cartesian
)
{
var
cartographic
=
Cesium
.
Cartographic
.
fromCartesian
(
cartesian
);
var
longitudeString
=
Cesium
.
Math
.
toDegrees
(
cartographic
.
longitude
).
toFixed
(
5
);
var
latitudeString
=
Cesium
.
Math
.
toDegrees
(
cartographic
.
latitude
).
toFixed
(
5
);
entity
.
position
=
cartesian
;
entity
.
label
.
show
=
true
;
entity
.
label
.
text
=
"Lon: "
+
(
" "
+
longitudeString
).
slice
(
-
10
)
+
"
\
nLat: "
+
(
" "
+
latitudeString
).
slice
(
-
10
);
}
else
{
entity
.
label
.
show
=
false
;
}
},
Cesium
.
ScreenSpaceEventType
.
MOUSE_MOVE
);
}
function
clearHover
()
{
viewer
.
entities
.
removeAll
();
handler
=
handler
&&
handler
.
destroy
();
};
function
updateParams
(
parameter
)
{
fetch
(
"/update?"
+
parameter
)
.
then
(
function
(
response
)
{
...
...
@@ -84,13 +139,34 @@
<span
class=
"borger"
></span>
<ul
id=
"menu"
>
<h2
style=
"color: #eee; padding-left: 5px;"
>
Receivers
</h2>
<div
id=
"rxcards"
class=
"menusections"
>
<h2
style=
"color: #eee; padding-left: 5px;"
>
Receivers
</h2>
<input
id=
"add_station"
class=
"edit-checkbox add-icon"
type=
"checkbox"
style=
"width: 23px; height: 23px;"
/>
<span
id=
"add_station_icon"
class=
"material-icons add-icon no-select"
>
add_circle_outline
</span>
<div
style=
"visibility: hidden; height: 0;"
id=
"new_rx_div"
style=
"padding: 0;"
>
<span
id=
"new-url"
>
Station URL:
</span>
<input
id=
"add_station"
class=
"edit-checkbox add-icon"
type=
"checkbox"
style=
"width: 23px; height: 23px;"
/>
<span
id=
"add_station_icon"
class=
"material-icons add-icon no-select"
>
add_circle_outline
</span>
<div
style=
"visibility: hidden; height: 0;"
id=
"new_rx_div"
style=
"padding: 0;"
>
<span
id=
"new-url"
>
Station URL:
</span>
</div>
</div>
<hr>
<div
id=
"aoicards"
class=
"menusections"
>
<h2
style=
"color: #eee; padding-left: 5px;"
>
Areas of Interest
</h2>
<p>
This does nothing right now.
</p>
<input
id=
"add_aoi"
class=
"edit-checkbox add-icon"
type=
"checkbox"
style=
"width: 23px; height: 23px;"
/>
<span
id=
"add_aoi_icon"
class=
"material-icons add-icon no-select"
>
add_circle_outline
</span>
<div
style=
"visibility: hidden; height: 0;"
id=
"new_aoi_div"
style=
"padding: 0;"
>
<span
id=
"new-aoi"
>
Lat/Lon/Radius:
</span>
</div>
</div>
<hr>
<div
id=
"exclusioncards"
class=
"menusections"
>
<h2
style=
"color: #eee; padding-left: 5px;"
>
Exclusion Areas
</h2>
<p>
This does nothing right now.
</p>
<input
id=
"add_exclusion"
class=
"edit-checkbox add-icon"
type=
"checkbox"
style=
"width: 23px; height: 23px;"
/>
<span
id=
"add_exclusion_icon"
class=
"material-icons add-icon no-select"
>
add_circle_outline
</span>
<div
style=
"visibility: hidden; height: 0;"
id=
"new_exclusion_div"
style=
"padding: 0;"
>
<span
id=
"new-exclusion"
>
Lat/Lon/Radius:
</span>
</div>
</div>
<script>
...
...
@@ -118,6 +194,28 @@
document
.
getElementById
(
"new_rx_div"
).
style
.
padding
=
"0"
;
}
}
var
add_aoi
=
document
.
getElementById
(
"add_aoi"
);
//Button to add new RX
add_aoi
.
onchange
=
function
()
{
if
(
add_aoi
.
checked
)
{
document
.
getElementById
(
"add_aoi_icon"
).
innerHTML
=
"save"
;
hovercoords
();
}
else
{
document
.
getElementById
(
"add_aoi_icon"
).
innerHTML
=
"add_circle_outline"
;
clearHover
();
}
}
var
add_exclusion
=
document
.
getElementById
(
"add_exclusion"
);
//Button to add new RX
add_exclusion
.
onchange
=
function
()
{
if
(
add_exclusion
.
checked
)
{
document
.
getElementById
(
"add_exclusion_icon"
).
innerHTML
=
"save"
;
hovercoords
();
}
else
{
document
.
getElementById
(
"add_exclusion_icon"
).
innerHTML
=
"add_circle_outline"
;
clearHover
();
}
}
</script>
</ul>
</div>
...
...
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