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

no infowindow on click on marker #140

Closed syllogismus closed 12 years ago

syllogismus commented 12 years ago

hi, just installed your gem (thx) on a new rails3 app. markers are shown. then i tried this:

@json = User.all.to_gmaps4rails do |user, marker| marker.json({ :id => "FOO" , :foo => "BAR" }) end

but only the markers are shown, no additional infowindow when i click on them. what could be wrong? thx

apneadiving commented 12 years ago

You're not supposed to use marker.json to have an infowindow.

use marker.infowindow