google-map-stitch 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ class GMS
47
47
 
48
48
  # total height in pixels
49
49
  def pixelHeight
50
- width*256
50
+ height*256
51
51
  end
52
52
 
53
53
  # total width printed @ 300 dpi (in inches)
@@ -85,8 +85,8 @@ class GMS
85
85
 
86
86
  # list all tiles
87
87
  def tiles
88
- @startY.upto(@endY).map.with_index do |x, c|
89
- @startX.upto(@endX).map.with_index do |y, r|
88
+ @startY.upto(@endY).map.with_index do |y, c|
89
+ @startX.upto(@endX).map.with_index do |x, r|
90
90
  {
91
91
  :url => imageURL(x,y,@zoomLevel,@layer),
92
92
  :dir => "r#{"%06d" % r}",
@@ -27,9 +27,9 @@ class GMS
27
27
  puts "Combining #{file}"
28
28
  column.push(Magick::Image.read(file).first)
29
29
  end
30
- output.push(column.append(false))
30
+ output.push(column.append(true))
31
31
  end
32
- output.append(true).write(@output_file)
32
+ output.append(false).write(@output_file)
33
33
  end
34
34
  end
35
35
  end
@@ -1,3 +1,3 @@
1
1
  class GMS
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-map-stitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-03 00:00:00.000000000 Z
12
+ date: 2012-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rmagick