Google Maps Script error in Onion.js

后端 未结 6 1351
挽巷
挽巷 2020-12-19 00:53

This morning I just started getting a google maps script error.

Line: 0 Char: 0 Error: Script Error Code: 0 URL:

I reverted all my code changes ba

6条回答
  •  自闭症患者
    2020-12-19 01:00

    Google launched a new release version 3.24 on May 24, 2016.

    According to the versioning model, there are only three versions: frozen, release and experimental.

    https://developers.google.com/maps/documentation/javascript/versions

    Version 3.22 is retired and cannot be accessed anymore.

    The new version supports only IE10 and IE11, the compatibility mode is unsupported.

    https://developers.google.com/maps/documentation/javascript/browsersupport

    WebBrowser control can default to an IE 7 rendering mode:

    https://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version

    You should force the control to a newer IE version

    http://www.codeproject.com/Articles/793687/Configuring-the-emulation-mode-of-an-Internet-Expl

    Use latest version of Internet Explorer in the webbrowser control

    Additionally, you can add the meta tag in your html

    It looks like the new version of Maps JavaScript API relies on a global JSON object which is not available in IE7. So, alternatively you can try to polyfill JSON:

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON

提交回复
热议问题