Commit f0cd6469 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema

Merge branch 'sat_indicators' into 'jeroen'

Add rise and set indicators to satellite view

See merge request !6
parents 602e37b0 353b7e50
......@@ -380,7 +380,7 @@ function satellite_view(element)
/* satellite line */
s_v_this.ctx.strokeStyle = "rgb(255, 0, 0)";
s_v_this.ctx.strokeStyle = "rgb(50, 50, 50)";
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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment