Round up the frame size for trace animations

This commit is contained in:
Tom Hughes 2019-06-11 22:33:07 +01:00
parent bc70a475eb
commit 46e3d84674

View file

@ -66,7 +66,7 @@ module GPX
height = 250
delay = 50
points_per_frame = num_points / nframes
points_per_frame = (num_points.to_f / nframes).ceil
proj = OSM::Mercator.new(min_lat, min_lon, max_lat, max_lon, width, height)