Google Maps API JavaScript error when GBrowserIsCompatible() is called

前端 未结 4 908
名媛妹妹
名媛妹妹 2021-01-24 22:02

I get an error on the following line:

 if (GBrowserIsCompatible()) {

this is my code still not working



        
4条回答
  •  天命终不由人
    2021-01-24 22:49

    I too had the Same Issue. When i checked with the Example program at http://universimmedia.pagesperso-orange.fr/geo/loc.htm it was Working fine; but When i Changed the API Key Value to that of mine, I got the Error at Gbrowser Line., After checking with my Google Account API., I realized that there are two Google Map API Versions 2 & 3 AND I have enabled only 3 and was referring the Map in the java Script., When i Enabled the API Version 2., The error is Fixed. Try it out and give your feedback.

提交回复
热议问题