Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
bd7d2461
Commit
bd7d2461
authored
Mar 08, 2019
by
Tammo Jan Dijkema
Browse files
Add rise and set indicators to satellite view
parent
9aaa2baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
console/js/dt_view.js
View file @
bd7d2461
...
...
@@ -380,7 +380,7 @@ function satellite_view(element)
/* satellite line */
s_v_this
.
ctx
.
strokeStyle
=
"
rgb(
25
5, 0, 0)
"
;
s_v_this
.
ctx
.
strokeStyle
=
"
rgb(5
0
,
5
0,
5
0)
"
;
s_v_this
.
ctx
.
beginPath
();
coord
=
this
.
coord2xy
(
coords
[
0
]);
...
...
@@ -391,7 +391,22 @@ function satellite_view(element)
coord
=
this
.
coord2xy
(
coords
[
i
]);
s_v_this
.
ctx
.
lineTo
(
coord
.
x
,
coord
.
y
);
}
s_v_this
.
ctx
.
stroke
();
s_v_this
.
ctx
.
beginPath
();
s_v_this
.
ctx
.
strokeStyle
=
"
rgb(0, 0, 0)
"
;
s_v_this
.
ctx
.
fillStyle
=
"
rgb(0, 255, 0)
"
;
coord_start
=
this
.
coord2xy
(
coords
[
0
])
s_v_this
.
ctx
.
arc
(
coord_start
.
x
,
coord_start
.
y
,
3
,
0
,
Math
.
PI
*
2
,
true
)
s_v_this
.
ctx
.
fill
();
s_v_this
.
ctx
.
stroke
();
s_v_this
.
ctx
.
beginPath
();
s_v_this
.
ctx
.
strokeStyle
=
"
rgb(0, 0, 0)
"
;
s_v_this
.
ctx
.
fillStyle
=
"
rgb(255, 0, 0)
"
;
coord_end
=
this
.
coord2xy
(
coords
[
coords
.
length
-
1
])
s_v_this
.
ctx
.
arc
(
coord_end
.
x
,
coord_end
.
y
,
3
,
0
,
Math
.
PI
*
2
,
true
)
s_v_this
.
ctx
.
fill
();
s_v_this
.
ctx
.
stroke
();
s_v_this
.
ctx
.
restore
();
...
...
Write
Preview
Supports
Markdown
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