Permalink
Browse files

update README

  • Loading branch information...
1 parent e3e6af8 commit cc216d24b779a30f925d1729e33aa42840c5519c @edennis committed Mar 14, 2012
Showing with 15 additions and 1 deletion.
  1. +15 −1 README.md
View
@@ -18,11 +18,25 @@ Or install it yourself as:
## Usage
-If you're using rails version < 3.1 or have the asset pipeline disabled you can also use this
+If you're using rails 3.0 or are using rails 3.1 and above and have the asset pipeline disabled you can also use this
generator to install the static files:
$ rails g jquery:gmap3:install
+Once you have the libraries installed you will first need to include the google maps API in your application layout:
+
+ javascript_include_tag "http://maps.googleapis.com/maps/api/js?sensor=true"
+
+Then you have to load the GMAP3 library by adding the following line to your app/assets/javascripts/application.js:
+
+ //= require gmap3
+
+After that it's as simple as calling the gmap3() method on the div that you want to display the map in:
+
+ $("#map_canvas").gmap3();
+
+For further details on the usage of GMAP3 please see the [documentation](http://gmap3.net/documentation.html).
+
## Contributing
1. Fork it

0 comments on commit cc216d2

Please sign in to comment.