Class: Map
Instance Attribute Summary collapse
-
#center_latitude ⇒ Object
Returns the value of attribute center_latitude.
-
#center_longitude ⇒ Object
Returns the value of attribute center_longitude.
-
#cluster_icon_url_large ⇒ Object
Returns the value of attribute cluster_icon_url_large.
-
#cluster_icon_url_medium ⇒ Object
Returns the value of attribute cluster_icon_url_medium.
-
#cluster_icon_url_small ⇒ Object
Returns the value of attribute cluster_icon_url_small.
-
#data_url ⇒ Object
Returns the value of attribute data_url.
-
#draggable ⇒ Object
Returns the value of attribute draggable.
-
#icon_url ⇒ Object
Returns the value of attribute icon_url.
-
#map_type_control ⇒ Object
Returns the value of attribute map_type_control.
-
#pan_control ⇒ Object
Returns the value of attribute pan_control.
-
#scroll_wheel ⇒ Object
Returns the value of attribute scroll_wheel.
-
#show_title ⇒ Object
Returns the value of attribute show_title.
-
#street_view_control ⇒ Object
Returns the value of attribute street_view_control.
-
#title ⇒ Object
Returns the value of attribute title.
-
#zoom_control ⇒ Object
Returns the value of attribute zoom_control.
-
#zoom_level ⇒ Object
Returns the value of attribute zoom_level.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Map
constructor
A new instance of Map.
- #options ⇒ Object
- #show_title? ⇒ Boolean
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_latitude ⇒ Object
Returns the value of attribute center_latitude.
9 10 11 |
# File 'app/models/map.rb', line 9 def center_latitude @center_latitude end |
#center_longitude ⇒ Object
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_large ⇒ Object
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_medium ⇒ Object
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_small ⇒ Object
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_url ⇒ Object
Returns the value of attribute data_url.
9 10 11 |
# File 'app/models/map.rb', line 9 def data_url @data_url end |
#draggable ⇒ Object
Returns the value of attribute draggable.
9 10 11 |
# File 'app/models/map.rb', line 9 def draggable @draggable end |
#icon_url ⇒ Object
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_control ⇒ Object
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_control ⇒ Object
Returns the value of attribute pan_control.
9 10 11 |
# File 'app/models/map.rb', line 9 def pan_control @pan_control end |
#scroll_wheel ⇒ Object
Returns the value of attribute scroll_wheel.
9 10 11 |
# File 'app/models/map.rb', line 9 def scroll_wheel @scroll_wheel end |
#show_title ⇒ Object
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_control ⇒ Object
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 |
#title ⇒ Object
Returns the value of attribute title.
9 10 11 |
# File 'app/models/map.rb', line 9 def title @title end |
#zoom_control ⇒ Object
Returns the value of attribute zoom_control.
9 10 11 |
# File 'app/models/map.rb', line 9 def zoom_control @zoom_control end |
#zoom_level ⇒ Object
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
#options ⇒ Object
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 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
19 20 21 |
# File 'app/models/map.rb', line 19 def show_title? @show_title end |