apneadiving / Google-Maps-for-Rails

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

broken infowindow #69

Closed vmortega closed 13 years ago

vmortega commented 13 years ago

I see a broken infowindow: http://img811.imageshack.us/img811/6242/maprx.png

Also when i zoom out doesn't see the clustering.

What can I do?

Great gem!

Thanks

mab commented 13 years ago

The clustering default is set to false, so you have to set it to true (see Issue #70): <%= gmaps("markers" => {"data" => @json, "options" => {"do_clustering" => true}}) %>

apneadiving commented 13 years ago

I let the ticket open but I fear, there is nothing to deal with the gem.

Hope you could find an answer. Keep us updated!

vmortega commented 13 years ago

The error was in the CSS (I used inuit.css framework). I just change the CSS framework to Bootstrap (from Twitter).

Thanks!!

andrewpurcell commented 12 years ago

vicoar, did you identify what the error was, or which class was causing it? I am having the same trouble and I'm using Twitter Bootstrap.

vmortega commented 12 years ago

The problem was the CSS in the body (or other container of the maps)

body { font-size: 20px; }

I removed that line (using default browser size) and it worked. Also: default borders width and padding.