the original gangsta of google maps on rails
Pull request Compare This branch is 24 commits ahead, 1 commit behind bborn:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
generators
lib
slices
tasks
test
.gitignore
MIT-LICENSE
NOTES.textile
README.rdoc
Rakefile
init.rb
install.rb
uninstall.rb

README.rdoc

                     .__            __                 
  ____   ______ ____ |  |__ _____ _/  |_  ____   ____  
_/ __ \ /  ___// ___\|  |  \\__  \\   __\/  _ \ /    \ 
\  ___/ \___ \\  \___|   Y  \/ __ \|  | (  <_> )   |  \
 \___  >____  >\___  >___|  (____  /__|  \____/|___|  /
     \/     \/     \/     \/     \/ eschaton | cusp \/

eschaton => google maps on rails with hotness

Helps 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

You can also view the docs online