How do I make an infowindow automatically display as open with Google-Maps-for-Rails

后端 未结 4 1429
情歌与酒
情歌与酒 2021-01-21 23:46

I want to display a map with the infowindow box automatically displayed for the single marker on the page, much like http://code.google.com/apis/maps/documentation/javascript/ex

4条回答
  •  伪装坚强ぢ
    2021-01-22 00:45

    You are mixing Javascript and Ruby together. Take a look at your javascript debugger (you are using one right? If not, the web inspector in Chrome or safari is great, as is Firebug for Firefox) and you'll see it complaining.

    Without seeing your controller code I can't give you too many specifics, but take a look at this post and it might point you in the right direction.

提交回复
热议问题