title: How to have multiple markers on one static map?
body: <p>I'm trying to have multiple markers on one static map.</p>
  <p>I am using <a href="http://www.rubygeocoder.com/" rel="nofollow noreferrer">geocoder gem</a> (followed the <a href="http://railscasts.com/episodes/273-geocoder" rel="nofollow noreferrer">railscast tutorial</a> for this). Managed to get that working.</p>
  <p>Now, I'm trying to loop all markers on one map it on the index page, but it shows up with each map separately.</p>
  <p>This is the code on the index page:</p>
  <pre><code>&lt;% @locations.each do |location| %&gt; 
  &lt;%= image_tag &quot;http://maps.google.com/maps/api/staticmap?size=450x300&amp;sensor=false&amp;zoom=15&amp;markers=#{location.latitude}%2C#{location.longitude}&quot; %&gt;
  &lt;% end %&gt;
  </code></pre>
  <p>How do I loop through this so all the markers shows up on <em>one</em> map instead of map for each and every single longtitude/latitude?</p>
  <p>Any advice would be appreciated and please let me know what further information I need to include.</p>