Class: Map

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/map.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Map

Returns a new instance of Map.



14
15
16
17
# File 'app/models/map.rb', line 14

def initialize(attributes={})
  super
  set_defaults
end

Instance Attribute Details

#center_latitudeObject

Returns the value of attribute center_latitude.



9
10
11
# File 'app/models/map.rb', line 9

def center_latitude
  @center_latitude
end

#center_longitudeObject

Returns the value of attribute center_longitude.



9
10
11
# File 'app/models/map.rb', line 9

def center_longitude
  @center_longitude
end

#cluster_icon_url_largeObject

Returns the value of attribute cluster_icon_url_large.



9
10
11
# File 'app/models/map.rb', line 9

def cluster_icon_url_large
  @cluster_icon_url_large
end

#cluster_icon_url_mediumObject

Returns the value of attribute cluster_icon_url_medium.



9
10
11
# File 'app/models/map.rb', line 9

def cluster_icon_url_medium
  @cluster_icon_url_medium
end

#cluster_icon_url_smallObject

Returns the value of attribute cluster_icon_url_small.



9
10
11
# File 'app/models/map.rb', line 9

def cluster_icon_url_small
  @cluster_icon_url_small
end

#data_urlObject

Returns the value of attribute data_url.



9
10
11
# File 'app/models/map.rb', line 9

def data_url
  @data_url
end

#draggableObject

Returns the value of attribute draggable.



9
10
11
# File 'app/models/map.rb', line 9

def draggable
  @draggable
end

#icon_urlObject

Returns the value of attribute icon_url.



9
10
11
# File 'app/models/map.rb', line 9

def icon_url
  @icon_url
end

#map_type_controlObject

Returns the value of attribute map_type_control.



9
10
11
# File 'app/models/map.rb', line 9

def map_type_control
  @map_type_control
end

#pan_controlObject

Returns the value of attribute pan_control.



9
10
11
# File 'app/models/map.rb', line 9

def pan_control
  @pan_control
end

#scroll_wheelObject

Returns the value of attribute scroll_wheel.



9
10
11
# File 'app/models/map.rb', line 9

def scroll_wheel
  @scroll_wheel
end

#show_titleObject

Returns the value of attribute show_title.



9
10
11
# File 'app/models/map.rb', line 9

def show_title
  @show_title
end

#street_view_controlObject

Returns the value of attribute street_view_control.



9
10
11
# File 'app/models/map.rb', line 9

def street_view_control
  @street_view_control
end

#titleObject

Returns the value of attribute title.



9
10
11
# File 'app/models/map.rb', line 9

def title
  @title
end

#zoom_controlObject

Returns the value of attribute zoom_control.



9
10
11
# File 'app/models/map.rb', line 9

def zoom_control
  @zoom_control
end

#zoom_levelObject

Returns the value of attribute zoom_level.



9
10
11
# File 'app/models/map.rb', line 9

def zoom_level
  @zoom_level
end

Instance Method Details

#optionsObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'app/models/map.rb', line 23

def options
  return {
      :data_url => data_url,
      :icon_url => icon_url,
      :cluster_icon_url_small => cluster_icon_url_small,
      :cluster_icon_url_medium => cluster_icon_url_medium,
      :cluster_icon_url_large => cluster_icon_url_large,
      :center_latitude => center_latitude,
      :center_longitude => center_longitude,
      :zoom_level => zoom_level,
      :pan_control => pan_control,
      :draggable => draggable,
      :street_view_control => street_view_control,
      :zoom_control => zoom_control,
      :scroll_wheel => scroll_wheel,
      :map_type_control => map_type_control
  }
end

#show_title?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/map.rb', line 19

def show_title?
  @show_title
end