lib/google-map-stitch/engine.rb in google-map-stitch-0.1.1 vs lib/google-map-stitch/engine.rb in google-map-stitch-0.1.2

- old
+ new

@@ -45,11 +45,11 @@ width*256 end # total height in pixels def pixelHeight - width*256 + height*256 end # total width printed @ 300 dpi (in inches) def printWidth(dpi=300) (pixelWidth.to_f/dpi).round(2) @@ -83,11 +83,11 @@ puts "=======================================================\n\n" end # list all tiles def tiles - @startY.upto(@endY).map.with_index do |x, c| - @startX.upto(@endX).map.with_index do |y, r| + @startY.upto(@endY).map.with_index do |y, c| + @startX.upto(@endX).map.with_index do |x, r| { :url => imageURL(x,y,@zoomLevel,@layer), :dir => "r#{"%06d" % r}", :file => "c#{"%06d" % c}.png" }