google-map-stitch 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
| 
         @@ -47,7 +47,7 @@ class GMS 
     | 
|
| 
       47 
47 
     | 
    
         | 
| 
       48 
48 
     | 
    
         
             
                # total height in pixels
         
     | 
| 
       49 
49 
     | 
    
         
             
                def pixelHeight
         
     | 
| 
       50 
     | 
    
         
            -
                   
     | 
| 
      
 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 | 
     | 
| 
       89 
     | 
    
         
            -
                    @startX.upto(@endX).map.with_index do | 
     | 
| 
      
 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( 
     | 
| 
      
 30 
     | 
    
         
            +
                    output.push(column.append(true))
         
     | 
| 
       31 
31 
     | 
    
         
             
                  end
         
     | 
| 
       32 
     | 
    
         
            -
                  output.append( 
     | 
| 
      
 32 
     | 
    
         
            +
                  output.append(false).write(@output_file)
         
     | 
| 
       33 
33 
     | 
    
         
             
                end
         
     | 
| 
       34 
34 
     | 
    
         
             
              end
         
     | 
| 
       35 
35 
     | 
    
         
             
            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. 
     | 
| 
      
 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- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2012-11-16 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: rmagick
         
     |