Bing Maps V8 - Uncaught ReferenceError: amd is not defined

Bing Maps V8 - Uncaught ReferenceError: amd is not defined

昨天 api 在工作。今天发生错误:

未捕获的引用错误:amd 未定义

有人可以帮我吗?

<!DOCTYPE html>
<html>
<head>
    <title>loadMapAsyncHTML</title>
    <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
</head>
<body>
    <div id='printoutPanel'></div>

    <div id='myMap' style='width: 100vw; height: 100vh;'></div>
    <script type='text/javascript'>
            var map;
            function loadMapScenario() {
                map = new Microsoft.Maps.Map(document.getElementById('myMap'), {
                    credentials: 'Your Bing Maps Key'
                });
            }


    </script>
    <script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?branch=release&callback=loadMapScenario' async defer></script>
</body>

更新

此错误已由 Bing 团队修复。

https://social.msdn.microsoft.com/Forums/en-US/31063241-34a2-4787-82ba-8e58bf1a2800/uncaught-referenceerror-amd-is-not-defined?forum=bingmaps

找到一个修复,添加:

<script type="text/javascript">
        window.amd = function(){};
        window.amd.define = function(){};
    </script>
    <script type='text/javascript' src='//www.bing.com/api/maps/mapcontrol?branch=release'></script>

该团队正在调查根本原因,因为托管平台似乎发生了变化,导致了这个问题。 Bing 地图分支中的任何代码均未更改。与此同时,许多人已经实施了 David 提到的解决方法。

更新:正在推出修补程序。当修补程序滚动我们的数据时,您应该会再次看到 Bing MAps V8 加载 centers/servers。

如果您获得 Bing Maps 许可(即付费客户),请确保您已向 Bing Maps Enterprise 支持团队记录事件。这将使他们能够在下周左右向您发送一份事件报告,其中包含有关此事件的详细信息。如果您没有支持团队的联系方式,可以在这里找到:https://www.microsoft.com/maps/support.aspx