Uncaught InvalidValueError: initMap is not a function

前端 未结 6 1808
半阙折子戏
半阙折子戏 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:24

    Anyone having a similar issue, initializing the map variable outside the initMap function worked for me

    
    

提交回复
热议问题