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
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