Class: Netzke::Communitypack::GoogleMapPanel

Inherits:
Base
  • Object
show all
Defined in:
lib/netzke/communitypack/google_map_panel.rb

Overview

Creates a google map panel. The panel additionaly has the options of google maps, i.e.:

  • zoom_level - The initial zoom level

  • gmap_type -

  • map_conf_opts -

  • map_controlls -

  • set_center - The initial map position

  • markers - Initial markers on the page

Instance Method Summary collapse

Instance Method Details

#configurationObject

default configuration



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/netzke/communitypack/google_map_panel.rb', line 15

def configuration
  super.merge({
    :zoom_level => 14,
    :gmap_type => 'map',
    :layout => :fit,
    :map_conf_opts => ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
    :map_controls => ['GSmallMapControl','GMapTypeControl','NonExistantControl'],
    :set_center => {
      :geo_code_addr => 'Flottwellstr. 4-5, 10785 Berlin, Germany',
      :marker => {
        :title => 'pme Familienservice GmbH'
      }
    }
  })
end