Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
mappyland / app / helpers / mappyland / mappyland_helper.rb
Size: Mime:
module Mappyland
  module MappylandHelper
    def mappyland(marker_data, html_options: {}, gmap: {},
                  **mappyland_options)
      html_tag = html_options.delete(:tag) || :div

      html_options[:class] ||= "map-container"
      html_options[:data] ||= {}
      html_options[:data].merge!(mappyland_options)
      html_options[:data].merge!(markers: marker_data,
                                 gmap: gmap,
                                 mappyland: '')

      content_tag html_tag, '', html_options
    end
  end
end