Sha256: fa94b34df28f6c18bfa20145d4f7b1484723f8df0dfc0a8a09406ceb4ba618ab

Contents?: true

Size: 561 Bytes

Versions: 5

Compression:

Stored size: 561 Bytes

Contents

module Gmaps4railsHelper
  
  def gmaps4rails(builder, enable_css = true, enable_js = true )
    options = {
      "map_options" => { "auto_adjust" => true},
      "markers"     => { "data" => builder }
    }
    render :partial => 'gmaps4rails/gmaps4rails', :locals => { :options => options, :enable_css => enable_css, :enable_js => enable_js }
  end
  
  def gmaps(options, enable_css = true, enable_js = true )
    render :partial => 'gmaps4rails/gmaps4rails', :locals => { :options => options, :enable_css => enable_css, :enable_js => enable_js }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gmaps4rails-0.8.8 lib/gmaps4rails_helper.rb
gmaps4rails-0.8.7 lib/gmaps4rails_helper.rb
gmaps4rails-0.8.6 lib/gmaps4rails_helper.rb
gmaps4rails-0.8.5 lib/gmaps4rails_helper.rb
gmaps4rails-0.8.4 lib/gmaps4rails_helper.rb