1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>百度离线版2.0DEMO</title>
6 <script type="text/javascript" src="http://api.map.baidu.com/getscript?v=2.0&ak="></script><!-- 这里的ak自己去百度获取-->
7 <script type="text/javascript" src="http://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.js"></script>
8 <script type="text/javascript" src="http://api.map.baidu.com/library/LuShu/1.2/src/LuShu_min.js"></script>
9 <link rel="stylesheet" href="http://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.css" />
10 <!--加载检索信息窗口-->
11 <script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.4/src/SearchInfoWindow_min.js"></script>
12 <link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.4/src/SearchInfoWindow_min.css" />
13 <link rel="stylesheet" type="text/css" href="css/bmap.css"/>
14 </head>
15 <body>
16 <div style="width:520px;height:340px;border:1px solid gray" id="container"></div>
17 <input type="button" id="btn" name="btn" value="加点" onclick="addPoint()" />
18 <input type="button" id="btn" name="btn" value="移除事件" onclick="removeEvent()" />
19 <div id="result"></div>
20 <button id="run">开始</button>
21 <button id="stop">停止</button>
22 <button id="pause">暂停</button>
23 <button id="hide">隐藏信息窗口</button>
24 <button id="show">展示信息窗口</button>
25 </body>
26 </html>
27 <script type="text/javascript">
28 var arrPois=[new BMap.Point(116.403984,39.914004) ];//一个数组,用来存放路书的坐标点
29 var map = new BMap.Map("container",{mapType: BMAP_NORMAL_MAP}); //设置卫星图为底图
30 var point = new BMap.Point(111.404, 40.915);