projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Round up the frame size for trace animations
[rails.git]
/
lib
/
gpx.rb
diff --git
a/lib/gpx.rb
b/lib/gpx.rb
index cfc82eedb2445fd0d081872d3d89eb1b7629853a..0aa23ae0b026eddc1af146780a56ff982ce14364 100644
(file)
--- a/
lib/gpx.rb
+++ b/
lib/gpx.rb
@@
-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)