GMap2未定义(偶尔),很奇怪啊。。。
webbroswer执行本地脚本的时候有时候(很少的情况)会出现GMap2未定义的错误懂googlemap 给看看
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html;"/>
<title>google map</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAA" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
...
function initialize(Arraylat,Arraylon)
{
if (flag == "1")
{
var map = new GMap2(document.getElementById("map_canvas"));
window.map1=map;
map....
}
}
</script>
......