Sha256: 490e49a609690555f5d9237c394cd22839e99133fd3ab09b471e8465dae22ce7
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 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, :startY => 236, :endX => 214, :endY => 353, :zoomLevel => 9 }) engine = GMS::Engine.new({ :startX => 1085, :startY => 1889, }) # subsection (Mexico) engine = GMS::Engine.new({ :startX => 10, :startY => 25, :endX => 19, :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.3 | README.md |