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
f2d1b022
Commit
f2d1b022
authored
Dec 13, 2020
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mid-dat backup
parent
6119bf8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
105 deletions
+103
-105
cardsmenu.js
static/cardsmenu.js
+98
-0
interest_areas.js
static/interest_areas.js
+0
-0
cesium.tpl
views/cesium.tpl
+5
-105
No files found.
static/cardsmenu.js
0 → 100644
View file @
f2d1b022
var
stationUrlHtml_new
=
document
.
createElement
(
'input'
);
stationUrlHtml_new
.
type
=
'text'
;
stationUrlHtml_new
.
id
=
'url-new'
;
stationUrlHtml_new
.
style
.
width
=
'300px'
;
document
.
getElementById
(
"new-url"
).
appendChild
(
stationUrlHtml_new
);
var
add_button
=
document
.
getElementById
(
"add_station"
);
//Button to add new RX
add_button
.
onchange
=
function
()
{
if
(
add_button
.
checked
)
{
stationUrlHtml_new
.
value
=
""
;
document
.
getElementById
(
"new_rx_div"
).
style
.
height
=
'auto'
;
document
.
getElementById
(
"new_rx_div"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"new_rx_div"
).
style
.
padding
=
"5px"
;
document
.
getElementById
(
"add_station_icon"
).
innerHTML
=
"save"
;
}
else
{
var
newrxurl
=
stationUrlHtml_new
.
value
if
(
newrxurl
!=
""
)
{
makeNewRx
(
newrxurl
);
}
document
.
getElementById
(
"new_rx_div"
).
style
.
height
=
0
;
document
.
getElementById
(
"new_rx_div"
).
style
.
visibility
=
"hidden"
;
document
.
getElementById
(
"new_rx_div"
).
style
.
padding
=
"0"
;
document
.
getElementById
(
"add_station_icon"
).
innerHTML
=
"add_circle_outline"
;
}
}
var
aoi_br
=
document
.
createElement
(
"br"
);
var
aoi_latlon_label
=
document
.
createTextNode
(
"Lat, Lon:"
);
var
aoi_lat_lon
=
document
.
createElement
(
'input'
);
aoi_lat_lon
.
type
=
'text'
;
aoi_lat_lon
.
id
=
'aoi-new-latlon'
;
aoi_lat_lon
.
style
.
width
=
'300px'
;
var
new_aoi
=
document
.
getElementById
(
"new-aoi"
);
new_aoi
.
appendChild
(
aoi_latlon_label
);
new_aoi
.
appendChild
(
aoi_lat_lon
);
var
aoi_radius_label
=
document
.
createTextNode
(
"Radius:"
);
var
aoi_radius
=
document
.
createElement
(
'input'
);
aoi_radius
.
type
=
'text'
;
aoi_radius
.
id
=
'aoi-new-radius'
;
aoi_radius
.
style
.
width
=
'300px'
;
new_aoi
.
appendChild
(
aoi_br
);
new_aoi
.
appendChild
(
aoi_radius_label
);
new_aoi
.
appendChild
(
aoi_radius
);
var
add_aoi
=
document
.
getElementById
(
"add_aoi"
);
//Button to add new RX
add_aoi
.
onchange
=
function
()
{
if
(
add_aoi
.
checked
)
{
clearHover
();
document
.
getElementById
(
"add_aoi_icon"
).
innerHTML
=
"save"
;
pickCenter
(
aoi_lat_lon
,
aoi_radius
,
Cesium
.
Color
.
CORNFLOWERBLUE
);
aoi_lat_lon
.
value
=
""
;
aoi_radius
.
value
=
""
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
height
=
'auto'
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
padding
=
"5px"
;
}
else
{
document
.
getElementById
(
"new_aoi_div"
).
style
.
height
=
0
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
visibility
=
"hidden"
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
padding
=
"0"
;
document
.
getElementById
(
"add_aoi_icon"
).
innerHTML
=
"add_circle_outline"
;
clearHover
();
}
}
var
exclusion_br
=
document
.
createElement
(
"br"
);
var
exclusion_latlon_label
=
document
.
createTextNode
(
"Lat, Lon:"
);
var
exclusion_lat_lon
=
document
.
createElement
(
'input'
);
exclusion_lat_lon
.
type
=
'text'
;
exclusion_lat_lon
.
id
=
'exclusion-new-latlon'
;
exclusion_lat_lon
.
style
.
width
=
'300px'
;
var
new_exclusion
=
document
.
getElementById
(
"new-exclusion"
);
new_exclusion
.
appendChild
(
exclusion_latlon_label
);
new_exclusion
.
appendChild
(
exclusion_lat_lon
);
var
exclusion_radius_label
=
document
.
createTextNode
(
"Radius:"
);
var
exclusion_radius
=
document
.
createElement
(
'input'
);
exclusion_radius
.
type
=
'text'
;
exclusion_radius
.
id
=
'exclusion-new-radius'
;
exclusion_radius
.
style
.
width
=
'300px'
;
new_exclusion
.
appendChild
(
exclusion_br
);
new_exclusion
.
appendChild
(
exclusion_radius_label
);
new_exclusion
.
appendChild
(
exclusion_radius
);
var
add_exclusion
=
document
.
getElementById
(
"add_exclusion"
);
//Button to add new RX
add_exclusion
.
onchange
=
function
()
{
if
(
add_exclusion
.
checked
)
{
clearHover
();
document
.
getElementById
(
"add_exclusion_icon"
).
innerHTML
=
"save"
;
pickCenter
(
exclusion_lat_lon
,
exclusion_radius
,
Cesium
.
Color
.
ORANGE
);
exclusion_lat_lon
.
value
=
""
;
exclusion_radius
.
value
=
""
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
height
=
'auto'
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
padding
=
"5px"
;
}
else
{
document
.
getElementById
(
"new_exclusion_div"
).
style
.
height
=
0
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
visibility
=
"hidden"
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
padding
=
"0"
;
document
.
getElementById
(
"add_exclusion_icon"
).
innerHTML
=
"add_circle_outline"
;
clearHover
();
}
}
static/interest_areas.js
0 → 100644
View file @
f2d1b022
views/cesium.tpl
View file @
f2d1b022
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
<meta
name=
"viewport"
content=
"width=device-width, height=device-height"
>
<meta
name=
"viewport"
content=
"width=device-width, height=device-height"
>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<!-- Include the CesiumJS JavaScript and CSS files -->
<!-- Include the CesiumJS JavaScript and CSS files -->
<script
src=
"https://cesium.com/downloads/cesiumjs/releases/1.7
5
/Build/Cesium/Cesium.js"
></script>
<script
src=
"https://cesium.com/downloads/cesiumjs/releases/1.7
6
/Build/Cesium/Cesium.js"
></script>
<script
src=
"/static/receiver_configurator.js"
></script>
<script
src=
"/static/receiver_configurator.js"
></script>
<link
href=
"https://cesium.com/downloads/cesiumjs/releases/1.7
5
/Build/Cesium/Widgets/widgets.css"
rel=
"stylesheet"
>
<link
href=
"https://cesium.com/downloads/cesiumjs/releases/1.7
6
/Build/Cesium/Widgets/widgets.css"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
<link
href=
"/static/style.css"
rel=
"stylesheet"
>
<link
href=
"/static/style.css"
rel=
"stylesheet"
>
<link
href=
"/static/menu.css"
rel=
"stylesheet"
>
<link
href=
"/static/menu.css"
rel=
"stylesheet"
>
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
cartographic
=
Cesium
.
Cartographic
.
fromCartesian
(
rad_cartesian
);
cartographic
=
Cesium
.
Cartographic
.
fromCartesian
(
rad_cartesian
);
if
(
rad_cartesian
)
{
if
(
rad_cartesian
)
{
var
ellipsoidGeodesic
=
new
Cesium
.
EllipsoidGeodesic
(
center_carto
,
cartographic
);
var
ellipsoidGeodesic
=
new
Cesium
.
EllipsoidGeodesic
(
center_carto
,
cartographic
);
var
distance
=
ellipsoidGeodesic
.
surfaceDistance
.
toFixed
(
1
);
var
distance
=
ellipsoidGeodesic
.
surfaceDistance
.
toFixed
(
0
);
radius_element_id
.
value
=
distance
;
radius_element_id
.
value
=
distance
;
entity
.
position
=
rad_cartesian
;
entity
.
position
=
rad_cartesian
;
...
@@ -160,6 +160,7 @@
...
@@ -160,6 +160,7 @@
new
Cesium
.
Primitive
({
new
Cesium
.
Primitive
({
geometryInstances
:
areaSelectorInstance
,
geometryInstances
:
areaSelectorInstance
,
appearance
:
new
Cesium
.
PerInstanceColorAppearance
({
appearance
:
new
Cesium
.
PerInstanceColorAppearance
({
flat
:
true
,
closed
:
true
,
closed
:
true
,
translucent
:
false
,
translucent
:
false
,
renderState
:
{
renderState
:
{
...
@@ -258,110 +259,9 @@
...
@@ -258,110 +259,9 @@
<span
id=
"new-exclusion"
></span>
<span
id=
"new-exclusion"
></span>
</div>
</div>
</div>
</div>
<script>
var
stationUrlHtml_new
=
document
.
createElement
(
'input'
);
stationUrlHtml_new
.
type
=
'text'
;
stationUrlHtml_new
.
id
=
'url-new'
;
stationUrlHtml_new
.
style
.
width
=
'300px'
;
document
.
getElementById
(
"new-url"
).
appendChild
(
stationUrlHtml_new
);
var
add_button
=
document
.
getElementById
(
"add_station"
);
//Button to add new RX
add_button
.
onchange
=
function
()
{
if
(
add_button
.
checked
)
{
stationUrlHtml_new
.
value
=
""
;
document
.
getElementById
(
"new_rx_div"
).
style
.
height
=
'auto'
;
document
.
getElementById
(
"new_rx_div"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"new_rx_div"
).
style
.
padding
=
"5px"
;
document
.
getElementById
(
"add_station_icon"
).
innerHTML
=
"save"
;
}
else
{
var
newrxurl
=
stationUrlHtml_new
.
value
if
(
newrxurl
!=
""
)
{
makeNewRx
(
newrxurl
);
}
document
.
getElementById
(
"new_rx_div"
).
style
.
height
=
0
;
document
.
getElementById
(
"new_rx_div"
).
style
.
visibility
=
"hidden"
;
document
.
getElementById
(
"new_rx_div"
).
style
.
padding
=
"0"
;
document
.
getElementById
(
"add_station_icon"
).
innerHTML
=
"add_circle_outline"
;
}
}
var
aoi_br
=
document
.
createElement
(
"br"
);
var
aoi_latlon_label
=
document
.
createTextNode
(
"Lat, Lon:"
);
var
aoi_lat_lon
=
document
.
createElement
(
'input'
);
aoi_lat_lon
.
type
=
'text'
;
aoi_lat_lon
.
id
=
'aoi-new-latlon'
;
aoi_lat_lon
.
style
.
width
=
'300px'
;
var
new_aoi
=
document
.
getElementById
(
"new-aoi"
);
new_aoi
.
appendChild
(
aoi_latlon_label
);
new_aoi
.
appendChild
(
aoi_lat_lon
);
var
aoi_radius_label
=
document
.
createTextNode
(
"Radius:"
);
var
aoi_radius
=
document
.
createElement
(
'input'
);
aoi_radius
.
type
=
'text'
;
aoi_radius
.
id
=
'aoi-new-radius'
;
aoi_radius
.
style
.
width
=
'300px'
;
new_aoi
.
appendChild
(
aoi_br
);
new_aoi
.
appendChild
(
aoi_radius_label
);
new_aoi
.
appendChild
(
aoi_radius
);
var
add_aoi
=
document
.
getElementById
(
"add_aoi"
);
//Button to add new RX
add_aoi
.
onchange
=
function
()
{
if
(
add_aoi
.
checked
)
{
clearHover
();
document
.
getElementById
(
"add_aoi_icon"
).
innerHTML
=
"save"
;
pickCenter
(
aoi_lat_lon
,
aoi_radius
,
Cesium
.
Color
.
BLUE
);
aoi_lat_lon
.
value
=
""
;
aoi_radius
.
value
=
""
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
height
=
'auto'
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
padding
=
"5px"
;
}
else
{
document
.
getElementById
(
"new_aoi_div"
).
style
.
height
=
0
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
visibility
=
"hidden"
;
document
.
getElementById
(
"new_aoi_div"
).
style
.
padding
=
"0"
;
document
.
getElementById
(
"add_aoi_icon"
).
innerHTML
=
"add_circle_outline"
;
clearHover
();
}
}
var
exclusion_br
=
document
.
createElement
(
"br"
);
var
exclusion_latlon_label
=
document
.
createTextNode
(
"Lat, Lon:"
);
var
exclusion_lat_lon
=
document
.
createElement
(
'input'
);
exclusion_lat_lon
.
type
=
'text'
;
exclusion_lat_lon
.
id
=
'exclusion-new-latlon'
;
exclusion_lat_lon
.
style
.
width
=
'300px'
;
var
new_exclusion
=
document
.
getElementById
(
"new-exclusion"
);
new_exclusion
.
appendChild
(
exclusion_latlon_label
);
new_exclusion
.
appendChild
(
exclusion_lat_lon
);
var
exclusion_radius_label
=
document
.
createTextNode
(
"Radius:"
);
var
exclusion_radius
=
document
.
createElement
(
'input'
);
exclusion_radius
.
type
=
'text'
;
exclusion_radius
.
id
=
'exclusion-new-radius'
;
exclusion_radius
.
style
.
width
=
'300px'
;
new_exclusion
.
appendChild
(
exclusion_br
);
new_exclusion
.
appendChild
(
exclusion_radius_label
);
new_exclusion
.
appendChild
(
exclusion_radius
);
var
add_exclusion
=
document
.
getElementById
(
"add_exclusion"
);
//Button to add new RX
add_exclusion
.
onchange
=
function
()
{
if
(
add_exclusion
.
checked
)
{
clearHover
();
document
.
getElementById
(
"add_exclusion_icon"
).
innerHTML
=
"save"
;
pickCenter
(
exclusion_lat_lon
,
exclusion_radius
,
Cesium
.
Color
.
YELLOW
);
exclusion_lat_lon
.
value
=
""
;
exclusion_radius
.
value
=
""
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
height
=
'auto'
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
visibility
=
"visible"
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
padding
=
"5px"
;
}
else
{
document
.
getElementById
(
"new_exclusion_div"
).
style
.
height
=
0
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
visibility
=
"hidden"
;
document
.
getElementById
(
"new_exclusion_div"
).
style
.
padding
=
"0"
;
document
.
getElementById
(
"add_exclusion_icon"
).
innerHTML
=
"add_circle_outline"
;
clearHover
();
}
}
</script>
</ul>
</ul>
</div>
</div>
<script
src=
"/static/cardsmenu.js"
></script>
<div
class=
"slidecontainer"
>
<div
class=
"slidecontainer"
>
<div
class=
"tooltip"
>
<div
class=
"tooltip"
>
...
...
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