<!--引入JavaScript文件-->
<script language="javascript" src="http://api.51ditu.com/js/maps.js"></script>
<!--创建一个DIV-->
<div id="maps" style="position:relative; width:300px; height:400px; border:black solid 1px;"><div align="center" style="margin:12px;"><a href="http://api.51ditu.com/docs/mapsapi/help.html" target="_blank" style="color:#D01E14;font-weight:bolder;font-size:12px;">看不到地图请点这里</a></div></div>
<!--创建地图,并且给地图加个简易缩放控件-->
<script language="javascript">
var maps = new LTMaps( "maps" );
maps.cityNameAndZoom( "beijing" , 2 );
var c = new LTSmallMapControl();
maps.addControl©;
var point = new LTPoint( 11640969 , 3989945 );//北京
var marker = new LTMarker( point );
maps.addOverLay( marker );
var text = new LTMapText( marker );
text.setLabel( "我的位置" );
maps.addOverLay( text );
</script>
<script language="javascript" src="http://api.51ditu.com/js/maps.js"></script>
<!--创建一个DIV-->
<div id="maps" style="position:relative; width:300px; height:400px; border:black solid 1px;"><div align="center" style="margin:12px;"><a href="http://api.51ditu.com/docs/mapsapi/help.html" target="_blank" style="color:#D01E14;font-weight:bolder;font-size:12px;">看不到地图请点这里</a></div></div>
<!--创建地图,并且给地图加个简易缩放控件-->
<script language="javascript">
var maps = new LTMaps( "maps" );
maps.cityNameAndZoom( "beijing" , 2 );
var c = new LTSmallMapControl();
maps.addControl©;
var point = new LTPoint( 11640969 , 3989945 );//北京
var marker = new LTMarker( point );
maps.addOverLay( marker );
var text = new LTMapText( marker );
text.setLabel( "我的位置" );
maps.addOverLay( text );
</script>