class Honua::Configuration

Attributes

attribution_bgcolor[RW]
attribution_fgcolor[RW]
attribution_text[RW]
max_fetch_attempts[RW]
tile_height[RW]
tile_width[RW]
tiles_url[RW]
user_agent[RW]

Public Class Methods

new() click to toggle source
# File lib/honua/configuration.rb, line 9
def initialize
  # max attempts to fetch a tile until given up and returning an empty tile
  @max_fetch_attempts = 3

  # OSM map tiles are typically 256x256
  # https://wiki.openstreetmap.org/wiki/Tiles
  @tile_height = 256
  @tile_width = 256

  # user agent that's used to make requests to the tile server
  @user_agent = Honua::Identity::VERSION_LABEL

  # attribution_text can contain some Pango markup
  # https://developer.gnome.org/pango/stable/pango-Markup.html
  @attribution_text = nil
  @attribution_fgcolor = '#fff'
  @attribution_bgcolor = '#000'
end