Class: Gpx2png::Ump
Constant Summary
Constants inherited from Osm
Constants inherited from OsmBase
OsmBase::TILE_HEIGHT, OsmBase::TILE_WIDTH
Instance Attribute Summary
Attributes inherited from Osm
#renderer, #renderer_options, #scale_options
Attributes inherited from OsmBase
#bitmap_point_x_max, #bitmap_point_x_min, #bitmap_point_y_max, #bitmap_point_y_min, #lat_max, #lat_min, #lon_max, #lon_min, #simulate_download, #tile_x_distance, #tile_y_distance
Attributes inherited from Base
Class Method Summary collapse
- .licence_string ⇒ Object
-
.url(zoom, coord, server = '3.') ⇒ Object
Convert OSM/UMP tile coords to url.
Methods inherited from Osm
#add_marker, #initialize, #render, #save, #setup_renderer, #to_png
Methods inherited from OsmBase
#auto_zoom_for, calc_zoom, #calculate_for_crop, #calculate_for_crop_with_auto_zoom, convert, #download_and_join_tiles, #expand_map, #fixed_size, #initial_calculations, #max_coords_or, #min_coords_or, point_on_absolute_image, point_on_image, reverse_convert, url_convert
Methods inherited from Base
#add, deg2rad, #initialize, rad2deg
Constructor Details
This class inherits a constructor from Gpx2png::Osm
Class Method Details
.licence_string ⇒ Object
16 17 18 |
# File 'lib/gpx2png/ump.rb', line 16 def self.licence_string "Data by UMP-pcPL+SRTM" end |
.url(zoom, coord, server = '3.') ⇒ Object
Convert OSM/UMP tile coords to url
10 11 12 13 14 |
# File 'lib/gpx2png/ump.rb', line 10 def self.url(zoom, coord, server = '3.') x, y = coord url = "http://#{server}tiles.ump.waw.pl/ump_tiles/#{zoom}/#{x}/#{y}.png" return url end |