Google Maps API JavaScript error when GBrowserIsCompatible() is called

前端 未结 4 914
名媛妹妹
名媛妹妹 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:56

    The answer from @Andrew S now seems to be the best, since v3 is now the only available version of the API. There is no GBrowserIsCompatible method, nor is there any replacement. I'd guess it would be best to check some web APIs (e.g., geolocation) you intend to use before invoking maps APIs.

    Google Maps v2 to v3: Removing Obsolete Code

提交回复
热议问题