Sha256: bd5f3a295f41813b3cdc5d332a7e3417ce2165f3f6191fac6d8d470a90c0bd40

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

require "cartographie/version"

# Cartographie is the root module for all of Cartographie's components
module Cartographie

  autoload :Config, 'cartographie/config'
  autoload :Map, 'cartographie/map'

  # Public: Create a new Map instance.
  #
  # location - The String for the map's location (default: 'Paris, France').
  # options  - The Hash options used to configure the map (default: {}):
  #            :width       - The Integer width of the map (optional).
  #            :height      - The Integer height of the map (optional).
  #            :zoom        - The Integer zoom level (optional).
  #            :file_format - The String file format for the image (optional).
  #            :sensor      - The Boolean indicating GPS usage (optional).
  #
  # Examples
  #
  #   Cartographie.map('Tokyo, Japan')
  #   Cartographie.map('San Francisco, CA', zoom: 10)
  #
  # Returns an instance of Cartographie::Map
  def self.map(location = 'Paris, France', options={})
    Map.new(location, options)
  end

  def self.configure(&block)
    Cartographie::Config.configure(&block)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cartographie-0.0.4 lib/cartographie.rb
cartographie-0.0.3 lib/cartographie.rb
cartographie-0.0.2 lib/cartographie.rb