Class: Decidim::MapCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::MapCell
show all
- Includes:
- MapHelper
- Defined in:
- app/cells/decidim/map_cell.rb
Instance Method Summary
collapse
Methods included from MapHelper
#dynamic_map_for, #static_map_link
Instance Method Details
#geocoded_data ⇒ Object
13
14
15
|
# File 'app/cells/decidim/map_cell.rb', line 13
def geocoded_data
@geocoded_data ||= data_for_map
end
|
#show ⇒ Object
7
8
9
10
11
|
# File 'app/cells/decidim/map_cell.rb', line 7
def show
return unless Decidim::Map.available?(:geocoding, :dynamic)
render
end
|