class Gpx2png::Landscape

Public Class Methods

licence_string() click to toggle source
# File lib/gpx2png/landscape.rb, line 14
def self.licence_string
  "All maps copyright Thunderforest.com and OpenStreetMap contributors"
end
url(zoom, coord, server = '3.') click to toggle source

Convert OSM/UMP tile coords to url

# File lib/gpx2png/landscape.rb, line 8
def self.url(zoom, coord, server = '3.')
  x, y = coord
  url = "http://tile.thunderforest.com/landscape/#{zoom}/#{x}/#{y}.png"
  return url
end