Sha256: 81258c95c957b2290053cea940ef94054a84ab6461ec47551e969efc0ca2fabd

Contents?: true

Size: 928 Bytes

Versions: 1

Compression:

Stored size: 928 Bytes

Contents

# 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
# ...
class Netzke::Communitypack::GoogleMapPanel < ::Netzke::Base
	js_include "#{File.dirname(__FILE__)}/google_map_panel/javascript/GMapPanel.js"
	
	# default configuration
	config do
			{
				: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
	
	js_base_class 'Ext.ux.GMapPanel'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netzke-communitypack-0.1.3 lib/netzke/communitypack/google_map_panel.rb