Skip to content
apneadiving edited this page Mar 18, 2011 · 19 revisions

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

Some solved questions here:

http://stackoverflow.com/questions/5225800/google-maps-for-rails-gem-force-geocoding-of-model

http://stackoverflow.com/questions/5042829/google-maps-api-key-in-gmaps4rails

http://stackoverflow.com/questions/5046987/dynamically-load-google-maps-markers-with-gmaps4rails

http://stackoverflow.com/questions/5297629/gmaps4rails-setting-map-width-and-height

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 to be loaded by passing false as a second argument.

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