我的代码是这样的
<div id="map" style="width: 200px; height: 200px; border:1px solid #000000; position:absolute"> </div>
<script type="text/javascript">
function ShowMap(Longitude,Latitude,Address){
var map = new GMap(document.getElementById("map"));
map.centerAndZoom(new GPoint(Longitude,Latitude),2);
map.addControl(new GLargeMapControl());
var point = new GPoint(Longitude,Latitude);
}
</script>
<script language="javascript">ShowMap('73.15821','22.32316','')</script>
</div>
在头部标签中
<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAUbVoUU0NAYILZTXJsa42UhQAOjerBL9Cz5dE0cCceAtSlRyy8RSeV_tVtvvlVOxAL55LJfb2kwET3Q" type="text/javascript"></script>
错误是
ReferenceError: GMap 未定义 [Break On This Error]
var map = new GMap(document.getElementById("drctmap"));