Sha256: 653588362d88782a8fe9c49209d4bb4aa5461e1ec91ccbcd52d484a8593172d6

Contents?: true

Size: 854 Bytes

Versions: 1

Compression:

Stored size: 854 Bytes

Contents

# google-map-stitch

Download and stitch google map tiles into a single image.

## Setup

```console
gem install google-map-stitch
```

## Usage

### Define a section of map and zoom level
```ruby
require 'google-map-stitch'

# entire map
engine = GMS::Engine.new({:zoomLevel=>2})

# subsection (South America)
engine = GMS::Engine.new({
  :startX => 130,
  :endX => 214,
  :startY => 236,
  :endY => 353,
  :zoomLevel => 9
})

# subsection (Mexico)
engine = GMS::Engine.new({
  :startX => 10,
  :endX => 19,
  :startY => 25,
  :endY => 31,
  :zoomLevel => 6
})

```

### Download Tiles
```ruby
downloader = GMS::Downloader.new(engine.tiles, 'tiles_folder')
downloader.process
```

### Combine Tiles
```ruby
stitcher = GMS::Stitcher.new('tiles_folder', 'map.png')
stitcher.process
```

> Copyright (c) 2012 Tyler Kellen. See LICENSE for further details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google-map-stitch-0.1.4 README.md