Skip to content

Navigation Menu

Sign up
apneadiving edited this page Jul 2, 2011 · 19 revisions

When you have questions, please ask them on http://stackoverflow.com so that everybody gets the info.

All questions here: http://stackoverflow.com/questions/tagged/gmaps4rails

Known Problem

Please note there is an issue with jquery 1.4.4/1.5.1 + rails ujs driver + google maps API v3: clicking on markers, or using other 'live' event triggers on the page will result in a critical error on IE < 9.

There is a workaround available. For more information, please see this discussion http://stackoverflow.com/questions/5221787.

CSS Loading

You can prevent the gmaps4rails.css file from being included by passing false as a second argument.

You can prevent:

  • www.google.com/jsapi

  • gmaps4rails.js

  • google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/src/markerclusterer.js

from being included if you set enable_js to false as a third argument.

 <% enable_css = false
 enable_js = false %>
 <%= gmaps( data_hash, enable_css, enable_js) %>
 <%= gmaps4rails( markers_json, enable_css, enable_js) %>

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /