【发布时间】:2016-10-06 12:20:16
【问题描述】:
昨天 api 正在工作。今天出现错误:
Uncaught ReferenceError: amd is not defined
有人可以帮帮我吗?
<!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 Team 已修复此错误。
【问题讨论】:
标签: javascript maps bing bing-maps