Google Maps API Error with no changes in the page code

前端 未结 3 507
伪装坚强ぢ
伪装坚强ぢ 2021-01-18 13:23

Today, with no changes in our code, Google Maps is not working, we are getting this errors today:

Uncaught TypeError: Cannot read property \'entries\' of und         


        
3条回答
  •  深忆病人
    2021-01-18 13:47

    I found the solution to the problem based on this Cannot read property 'entries' of undefined in http://maps.googleapis.com/maps/api/ and on @ajayel answer's: "Google changed their Maps API script and started using the variable Map which broke our site November 2017. Renaming the Map variable to OurMap fixed the issue for us."

    The issue here is that we was also using the name Map for our main map operations javascript library, we changed it, and everything started to work fine!

提交回复
热议问题