bborn / eschaton

google maps on rails with hotness

Home Page:http://eschatonmaps.blogspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

                     .__            __                 
  ____   ______ ____ |  |__ _____ _/  |_  ____   ____  
_/ __ \ /  ___// ___\|  |  \\__  \\   __\/  _ \ /    \ 
\  ___/ \___ \\  \___|   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

About

google maps on rails with hotness

http://eschatonmaps.blogspot.com/

License:MIT License


Languages

Language:Ruby 97.8%Language:JavaScript 2.2%