Google maps in hidden div

后端 未结 5 849
余生分开走
余生分开走 2020-12-06 06:56

I have a page with two tabs. The first tab has photos and the second a google map. The problem is that the google map is not completely drawing because it is in a hidden div

5条回答
  •  北海茫月
    2020-12-06 07:18

    By following the link provided from Pete, I was able to resolve that.

    You probably have a function called calcRoute(). You might need to trigger this function twice. At first, when it's triggered it loads fine, but you might need to trigger that function again as well when you change the tab. That should work!

提交回复
热议问题