Class: Gpx2png::Outdoors
- Defined in:
- lib/gpx2png/outdoors.rb
Constant Summary
Constants inherited from Osm
Gpx2png::Osm::DEFAULT_RENDERER
Constants inherited from OsmBase
Gpx2png::OsmBase::TILE_HEIGHT, Gpx2png::OsmBase::TILE_WIDTH
Constants included from Calculations::OsmClassMethods
Calculations::OsmClassMethods::TILE_HEIGHT, Calculations::OsmClassMethods::TILE_WIDTH
Constants included from Calculations::OsmInstanceMethods
Calculations::OsmInstanceMethods::TILE_HEIGHT, Calculations::OsmInstanceMethods::TILE_WIDTH
Instance Attribute Summary
Attributes inherited from Osm
Attributes included from Calculations::OsmInstanceMethods
#bitmap_point_x_max, #bitmap_point_x_min, #bitmap_point_y_max, #bitmap_point_y_min, #lat_max, #lat_min, #lon_max, #lon_min, #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
Methods included from Calculations::OsmClassMethods
#calc_zoom, #convert, #point_on_absolute_image, #point_on_image, #reverse_convert
Methods included from Calculations::OsmInstanceMethods
#auto_zoom_for, #calculate_for_crop, #calculate_for_crop_with_auto_zoom, #download_and_join_tiles, #expand_map, #initial_calculations
Methods inherited from Base
#add, #add_layer, #color, #coords=, #destroy, #fixed_size, #initialize, logger, logger=, simulate_download=, #simulate_download?, #zoom, #zoom=
Methods included from Calculations::BaseClassMethods
Methods included from Calculations::BaseInstanceMethods
#calculate_minmax_latlon, #enlarge_border_coords
Constructor Details
This class inherits a constructor from Gpx2png::Osm
Class Method Details
.licence_string ⇒ Object
14 15 16 |
# File 'lib/gpx2png/outdoors.rb', line 14 def self.licence_string "All maps copyright Thunderforest.com and OpenStreetMap contributors" end |
.url(zoom, coord, server = '3.') ⇒ Object
Convert OSM/UMP tile coords to url
8 9 10 11 12 |
# File 'lib/gpx2png/outdoors.rb', line 8 def self.url(zoom, coord, server = '3.') x, y = coord url = "http://tile.thunderforest.com/outdoors/#{zoom}/#{x}/#{y}.png" return url end |