class Marker::Helpers::FieldTag

Constants

DEFAULT_MAP_ENGINE
DEFAULT_STYLE

Attributes

engine[R]
html_options[R]
object[R]
template[R]

Public Instance Methods

id() click to toggle source
# File lib/marker/helpers/field_tag.rb, line 31
def id
  @id ||= @template.dom_id(@object, method_name)
end
input_options() click to toggle source
# File lib/marker/helpers/field_tag.rb, line 35
def input_options
  @input_options ||= {
    data: {
      marker: method_name,
      zoom: @html_options[:zoom]
    },
    style: DEFAULT_STYLE
  }.merge!(@html_options)
end
method_name() click to toggle source
# File lib/marker/helpers/field_tag.rb, line 45
def method_name
  @options[:method_name]
end
object_name() click to toggle source
# File lib/marker/helpers/field_tag.rb, line 49
def object_name
  @options[:object_name]
end