大致可以分为三个步骤:
1:在<head></head>标签体内添加如下所示的javascript脚本:
<script type=text/javascript src=http://dev.ditu.live.com/mapcontrol/mapcontrol.ashx?v=6.2></script>
<script type=text/javascript>
var map = null;
function GetMap(){
map = new VEMap('myMap');
map.LoadMap();
}
</script>
2:在<body></body>标签中添加VE的onload()方法.
1 如下所示:
<body onload=GetMap();></body>
3: 在<body></body>标签体内添加如下所示的代码:
<div id='myMap' style=position:relative; width:800px; height:600px;></div>
此时保存运行代码就可以看到地图被引用到了你的网页中来.
<IMG title=VETest style=BORDER-RIGHT: 0px; BORDER-TOP: 0px; disPLAY: inline; BORDER-LEFT: 0px; BORDER-BottOM: 0px height=500 alt=VETest src=http://www.wfuyu.com/uploads/allimg/100312/14515921Z-1.jpg width=528 border=0>