Module: Workbench::SimpleMapHelper
- Defined in:
- app/helpers/workbench/simple_map_helper.rb
Instance Method Summary collapse
-
#simple_map(map_objects, map_center = nil, border_string = '') ⇒ Object
calculation.
- #simple_map_component(map_objects, map_center = nil, border_string = '') ⇒ Object
Instance Method Details
#simple_map(map_objects, map_center = nil, border_string = '') ⇒ Object
calculation
7 8 9 |
# File 'app/helpers/workbench/simple_map_helper.rb', line 7 def simple_map(map_objects, map_center = nil, border_string = '') simple_map_component(map_objects, map_center, border_string) end |
#simple_map_component(map_objects, map_center = nil, border_string = '') ⇒ Object
11 12 13 14 15 16 |
# File 'app/helpers/workbench/simple_map_helper.rb', line 11 def simple_map_component(map_objects, map_center = nil, border_string = '') render(partial: 'shared/data/gis/simple_map', locals: {map_objects: map_objects, map_center: map_center, border_string: border_string}) end |