Closed xtoine closed 11 years ago
When I use
<%= gmaps4rails(@markers) %>
If I have lot of markers around the same city, it will group them like the screenshot.
But when I use something customize: <%= gmaps({ "map_options" => {"libraries" => ["adsense"], "auto_zoom" => true}, "markers" => {"data" => @checkins} }) %>
<%= gmaps({ "map_options" => {"libraries" => ["adsense"], "auto_zoom" => true}, "markers" => {"data" => @checkins} }) %>
It doesn't happen and all the markers are show on the map (not very nice to see the informations). Any solution? An option to set?
Thanks
look at the do_clustering option in the doc: https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Markers
do_clustering
When I use
<%= gmaps4rails(@markers) %>
If I have lot of markers around the same city, it will group them like the screenshot.
But when I use something customize:
<%= gmaps({ "map_options" => {"libraries" => ["adsense"], "auto_zoom" => true}, "markers" => {"data" => @checkins} }) %>
It doesn't happen and all the markers are show on the map (not very nice to see the informations). Any solution? An option to set?
Thanks