标记将不会通过javascript加载到google maps API网站上

标记将不会通过javascript加载到google maps API网站上,javascript,google-maps,Javascript,Google Maps,我是一个javascript初学者,已经让这个网站在本地运行,但因为我托管了它,所以无法显示标记 网址是: 我看到2个标记错误,但无法找出它们在托管站点上发生的原因: TypeError: xml is null var markers = xml.documentElement.getElementsByTagName("marker"); TypeError: xml is null (?)(data=XMLHttpRequest { readyState=4, timeout=0, w

我是一个javascript初学者,已经让这个网站在本地运行,但因为我托管了它,所以无法显示标记

网址是:

我看到2个标记错误,但无法找出它们在托管站点上发生的原因:

TypeError: xml is null
var markers = xml.documentElement.getElementsByTagName("marker");

TypeError: xml is null
(?)(data=XMLHttpRequest { readyState=4, timeout=0, withCredentials=false, more...})index.php (line 251)
onreadystatechange()index.php (line 347)
var markers = xml.documentElement.getElementsByTagName("marker");

我在Chrome中看到的错误有:

Uncaught ReferenceError: google is not defined infobox.js:126
Uncaught TypeError: Cannot read property 'documentElement' of null 
您的数据库/xml在live server上不工作:

给出:
无效查询:“字段列表”中的未知列“p.pname”

而不是有效的xml。此外,在加载Google Maps API之前,还包括infobox.js:

<script src="js/infobox.js" type="text/javascript"></script>

需要在以下情况之后:

<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBBchNd66ZglMRtO0sLvolyWwMlfHU-nTU&sensor=false&libraries=places">