Gmaps4rails doesn't display my marker until reload

老子叫甜甜 提交于 2019-12-25 07:15:39

问题


I implemented a Gmaps4Rails Map in my app:

Link to one Location, you may go back to the list with the link at the bottom and check another location ---http://immosmap.herokuapp.com/locations/37

My problem ist that I get this error and it only displays a blue map:

Uncaught TypeError: Object # has no method 'setMap'

But when I reload, it does display the way I want it to work.

Do I have to implement a callback here? How? Didn't find my topic in the wiki...

来源:https://stackoverflow.com/questions/23060151/gmaps4rails-doesnt-display-my-marker-until-reload

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!