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

Rails, gmaps4rails problem with clusters


Last time I have noticed problem with google maps cluster.

I use gmaps4rails plugin (i tried version 0.8.6 and 1.1.5, and problem exist in both).

Simple map with one marker is displayed properly.

But if i got 10 markers then map isnt showed(many markers create one cluster).

I inspect that problem with firebug and it return

e.b.mapTypes[e.b.getMapTypeId()] is undefined

This error is from file -> https://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclusterer/1.0/src/markerclusterer_compiled.js

Moreover I tried to disable clustering with options

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

But I got the same error.

Is there a quick solution to that problem??


Solution

  • This was due to an update from google causing incompatibility.

    It's ok now.