百度地图展示公司地址示例

百度地图百度地图

<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=你的百度地图key"></script>
<div id="allmap" style="height:450px"></div>
<script type="text/javascript">
var map = new BMapGL.Map("allmap"); 
var point = new BMapGL.Point(114,38);
//替换成你的地图经纬度
map.centerAndZoom(point, 19); var marker = new BMapGL.Marker(point);
var opts = {
width: 350,        
height: 100,
title: "xxx技术有限公司",             
message: "xxx技术有限公司"
}
var infoWindow = new BMapGL.InfoWindow("北京市朝阳区xx8层A-xxx", opts);
map.openInfoWindow(infoWindow, point);
marker.addEventListener("click", function () {
map.openInfoWindow(infoWindow, point); 
});
</script>