You are here: Browse Railsplugins Google Maps
Works with geokit and adds convenient helper methods for your views
To Use:
1 – Set your Google Maps API Key in environment.rb (or somewhere else if you’d prefer) I’d suggest copying the configuration code out of your environment.rb and into an initializer named geokit
2 – Do something like this in a view.
<%
map = GoogleMap.new
map.markers << GoogleMapMarker.new(:map => map,
:lat => 47.6597,
:lng => -122.318,
:html => 'My House')
map.markers << GoogleMapMarker.new(:map => map,
:lat => 46.6597,
:lng => -121.318,
:html => 'My House')
%>
<%= map.to_html %>
<%= map.div %>
1 – Use included icon classes
<%= map.div %>
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly