Search code examples
ruby-on-railsruby-on-rails-3google-mapsgmaps4rails

Gmaps4rails : Clustering not working?


Since Gmaps4rails updated to 1.5 the clustering option has been set to false by default. The documentation says that :do_clustering its the way to show clusters on flooding markers.

In code i´ve got:

    <%= gmaps(:markers => {:data => @json}, :map_options => {:do_clustering => true}) %>

Edit: And of course it is supported

But clusters still not showing. Any thoughts?


Solution

  • Just realized:

    You're passing do_clustering as a map option whereas it's a marker option.