Class: Satis::Map::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/satis/map/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

Methods inherited from ApplicationComponent

add_helper, #component_name

Constructor Details

#initialize(latitude: 52.09083, longitude: 5.12222, zoom_level: 7, geo_json_url: nil) ⇒ Component

Returns a new instance of Component.



8
9
10
11
12
13
14
# File 'app/components/satis/map/component.rb', line 8

def initialize(latitude: 52.09083, longitude: 5.12222, zoom_level: 7, geo_json_url: nil)
  super
  @latitude = latitude
  @longitude = longitude
  @zoom_level = zoom_level
  @geo_json_url = geo_json_url
end

Instance Attribute Details

#geo_json_urlObject (readonly)

Returns the value of attribute geo_json_url.



6
7
8
# File 'app/components/satis/map/component.rb', line 6

def geo_json_url
  @geo_json_url
end

#latitudeObject (readonly)

Returns the value of attribute latitude.



6
7
8
# File 'app/components/satis/map/component.rb', line 6

def latitude
  @latitude
end

#longitudeObject (readonly)

Returns the value of attribute longitude.



6
7
8
# File 'app/components/satis/map/component.rb', line 6

def longitude
  @longitude
end

#zoom_levelObject (readonly)

Returns the value of attribute zoom_level.



6
7
8
# File 'app/components/satis/map/component.rb', line 6

def zoom_level
  @zoom_level
end