.__ __ ____ ______ ____ | |__ _____ _/ |_ ____ ____ _/ __ \ / ___// ___\| | \\__ \\ __\/ _ \ / \ \ ___/ \___ \\ \___| Y \/ __ \| | ( <_> ) | \ \___ >____ >\___ >___| (____ /__| \____/|___| / \/ \/ \/ \/ \/ eschaton | cusp \/
¶ ↑
eschaton => google maps on rails with hotnessHelps with writing google map mashups in Rails bringing together the power of Google Maps and Rails.
Visit the wiki for more info.
map = Google::Map.new(:center => {:latitude => -33.947, :longitude => 18.462}, :controls => [:small_map, :map_type]) map.click do |script, location| marker = map.add_marker :location => location marker.open_info_window :text => 'Awesome, you added a marker!' end
¶ ↑
Get it…For Rails 2.1 and up
$ script/plugin install git://github.com/yawningman/eschaton.git
Older versions of Rails
$ cd vendor/plugins $ git clone git://github.com/yawningman/eschaton.git
¶ ↑
Get going…Generate a map, look at the files the generator created and play a bit.
$ script/generate map
Visit the map at localhost:3000/map or wherever your server runs.
Generate and review the docs, put some test code in the app/helpers/map_helper.rb and play!
$ cd vendor/plugins/eschaton/ $ rake rdoc $ rake open_doc