网站api-百度api
- <script src="http://api.map.baidu.com/api?v=2.0&ak=UH0yHlkHwURTGYSsQ07DF85BVo2GaYt5"></script>
- <script src="http://api.map.baidu.com/api?v=2.0&ak=UH0yHlkHwURTGYSsQ07DF85BVo2GaYt5"></script>
- <div class="dt right" id="dt">
- <script>
- var map = new BMap.Map("dt"); // 创建Map实例
- var point = new BMap.Point(113.575667, 34.81319); // 创建点坐标
- map.centerAndZoom(point,15); // 初始化地图,设置中心点坐标和地图级别。
- map.enableScrollWheelZoom(); //启用滚轮放大缩小
- map.addControl(new BMap.NavigationControl());
- map.addControl(new BMap.ScaleControl());
- map.addControl(new BMap.OverviewMapControl());
- var marker = new BMap.Marker(point);
- map.addOverlay(marker);
- marker.setAnimation(BMAP_ANIMATION_BOUNCE);
- </script>
拾取坐标系统
- http://api.map.baidu.com/lbsapi/getpoint/index.html