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

marker becomes unclickable after adding picture #350

Closed daywednes closed 11 years ago

daywednes commented 11 years ago

I follow the rails cast http://www.youtube.com/watch?v=Yg5-33zedqM and got everything till adding the picture for a marker as below. The marker becomes unclickable to show up the infowindow. when removing the gmaps4rails_marker_picture, it does work well as i am able to click on the marker and it shows up the infowindow then. I want to make it working as from the railscast! Any help? Thank you very much!

def gmaps4rails_infowindow "#{name}" end

def gmaps4rails_sidebar name end def gmaps4rails_title name end

def gmaps4rails_marker_picture { "picture" => "assets/#{Random.rand(5)}.bmp", "width" => "24", "height" => "24" } end