<style type="text/css">
#allmap {width: 100%;height: 100%;margin:0;font-family:"微軟雅黑";font-size:14px;}
#l-map{height:500px;width:100%;}
#r-result{width:100%;}
</style>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=aq7gh0fRBQyidKIhwOYHqKVO"></script>
<div id="l-map"></div>
<div id="r-result"></div>
<script type="text/javascript">
// 百度地圖API功能
var sContent ="<b>武漢中網(wǎng)維優(yōu)網(wǎng)絡(luò)科技有限公司</b><br>地址:雄楚大道268號御景名門2棟2103室";
var map = new BMap.Map("l-map");
var point = new BMap.Point(114.345387,30.519627); // 坐標(biāo)選擇器
map.centerAndZoom(point, 16); // 地圖縮放比例
var infoWindow = new BMap.InfoWindow(sContent); // 創(chuàng)建信息窗口對象
map.openInfoWindow(infoWindow,point); //開啟信息窗口
</script>
備用鏈接:進入百度坐標(biāo)選擇器
相關(guān)標(biāo)簽:百度地圖

