Uncaught InvalidValueError: initMap is not a function

前端 未结 6 1794
半阙折子戏
半阙折子戏 2020-12-10 16:57

I am trying to load a google map with some specific parmeters. I understand the problem is most likely that the initMap function needs to be declared globally. However, I h

6条回答
  •  暖寄归人
    2020-12-10 17:09

    In my case the function was async and it was crashing since the initmap was being called but it was not loaded at that point yet. So you can just write async="false" as mentioned before:

    
    

提交回复
热议问题