Module: ViewHelpers

Defined in:
lib/mapit/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#mapframe(address, options = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/mapit/view_helpers.rb', line 4

def mapframe(address, options = {})
  options = {
    :marginheight => "0",
    :marginwidth => "0",
    :frameborder => "0",
    :height => "300",
    :width => "300",
    :scrolling => "no",
    :src => Mapit.url_for_address(address)
  }.merge(options)

  (:iframe, '', options, false)
end