Skip to content
gregorydickson edited this page Sep 13, 2010 · 8 revisions

A basic YM4R/GM tutorial for starting a map or Mashup with Google Maps.

FYI, all the existing tutorials on YM4R seem to be out of date with the most recent code so I created this quick rails app as a guide to show how to use the YM4R/GM plugin. – February 2010.

This basic mashup uses YM4R which depends on GeoRuby. Fragility’s Spatial Adapter is also installed but not currently used in the example. I have generated the ruby doc for YM4R to make sure it was the latest and included recent updates. It is in vendor/plugins/ym4r_gm/lib/doc/

1. Download the the mashup ‘git clone git://github.com/gregorydickson/Basic-Mashup.git’
2. run ‘gem install GeoRuby’ (mind the capitalization)
3. Start your MySQL server.
4. run ‘rake db:create’ (there are no database tables right now, just an empty model named ‘Oklahoma’).
5. set your rails gem version in environment.rb
6. get a Google Maps API key (http://code.google.com/apis/maps/signup.html) and set it in the config/gmaps_api_key.yml file
7. run ‘script/server’ from the root directory of the mashup

It should work!
email me if it doesn’t work [email protected]

Clone this wiki locally