apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.27k stars 382 forks source link

Is it possible to transfer many locations in one marker? #542

Open bogdan8 opened 7 years ago

bogdan8 commented 7 years ago

Now there are so

@hash = Gmaps4rails.build_markers(@moderators) do |moderator, marker|
  marker.lat "48.9181359172472"
  marker.lng "38.753487914800644"
  marker.infowindow moderator.title
end

and the need to make it so

@hash = Gmaps4rails.build_markers(@moderators) do |moderator, marker|
  marker.lat "48.9181359172472", "48.351836426964766"
  marker.lng "38.753487914800644", "38.621651977300644"
  marker.infowindow moderator.title
end

I can do it in gmaps4rails?