Class: MapPrint::Providers::OpenStreetMap

Inherits:
Base
  • Object
show all
Defined in:
lib/map_print/providers/open_street_map.rb

Constant Summary collapse

BASE_URL =
'http://a.tile.openstreetmap.org/${z}/${x}/${y}.png'

Instance Attribute Summary

Attributes inherited from Base

#north_east, #provider, #south_west, #zoom

Instance Method Summary collapse

Methods inherited from Base

#download, #initialize

Constructor Details

This class inherits a constructor from MapPrint::Providers::Base

Instance Method Details

#build_provider(base_url = nil) ⇒ Object



7
8
9
# File 'lib/map_print/providers/open_street_map.rb', line 7

def build_provider(base_url=nil)
  TileFactory.new(base_url || BASE_URL, 'osm', @south_west, @north_east, @zoom)
end