Google Maps API: TypeError: a is undefined

前端 未结 3 1842
忘了有多久
忘了有多久 2020-12-06 09:31

I have searched this problem all over the web and none of them seem to give me any resolution. I have a simple script to just display the map of South Africa.



        
3条回答
  •  隐瞒了意图╮
    2020-12-06 10:01

    Version 3.30+ is affected of this problem if there is a global var called Map.

    ex:

    
    
    

    We got this error:

    TypeError: a.prototype is undefined

    Renaming window.Map then everything goes fine.

提交回复
热议问题