Use stored lats/lons to draw trace images

This commit is contained in:
Anton Khorev 2024-09-23 16:34:24 +03:00
parent ba732128a7
commit 6c6d306de9

View file

@ -98,9 +98,9 @@ module GPX
first = true first = true
points.each_with_index do |p, pt| @actual_points.times do |pt|
px = proj.x(p.longitude) px = proj.x @lons[pt]
py = proj.y(p.latitude) py = proj.y @lats[pt]
if (pt >= (points_per_frame * n)) && (pt <= (points_per_frame * (n + 1))) if (pt >= (points_per_frame * n)) && (pt <= (points_per_frame * (n + 1)))
pen.thickness = 3 pen.thickness = 3
@ -155,9 +155,9 @@ module GPX
first = true first = true
points do |p| @actual_points.times do |pt|
px = proj.x(p.longitude) px = proj.x @lons[pt]
py = proj.y(p.latitude) py = proj.y @lats[pt]
pen.line(px, py, oldpx, oldpy) unless first pen.line(px, py, oldpx, oldpy) unless first