首页 > 代码库 > java调用百度地图非原创

java调用百度地图非原创

 1 <%@ page contentType="text/html; charset=gb2312"%> 2 <!DOCTYPE html> 3 <html> 4         <head> 5                 <title>百度地图javascript</title> 6                 <script type="text/javascript"> 7 function initialize() { 8         var mp = new BMap.Map(‘map‘); 9         mp.centerAndZoom(new BMap.Point(121.2134, 31.0576), 15);10 }11  12 function loadScript() {13         var script = document.createElement("script");14         script.src = "http://api.map.baidu.com/api?v=1.4&callback=initialize";15         document.body.appendChild(script);16 }17  18 window.onload = loadScript;19 </script>20         </head>21         <body>22                 <div id="map" style="width: 1500px; height: 1000px"></div>23         </body>24 </html>

 

java调用百度地图非原创