-
Notifications
You must be signed in to change notification settings - Fork 382
Miscellaneous
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
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.
You can prevent the gmaps4rails.css
file from being included by passing false
as a second argument.
You can prevent:
-
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) %>