var myIcon = new BMap.Icon("image/red.gif", new BMap.Size(23, 25), { offset: new BMap.Size(0, 0)});
var marker = new BMap.Marker(point,{icon:myIcon});
map.addOverlay(marker);
var label = new BMap.Label("公司名稱:"+di.name,{offset:new BMap.Size(5,-40)});
label.setStyle({
paddingLeft:"12px", //給label設置樣式,任意的CSS都是可以的
fontSize:"12px", //字號
border:"0", //邊
height:"50px", //高度
width:"280px", //寬
textAlign:"top", //文字水平居中顯示
lineHeight:"30px", //行高,文字垂直居中顯示
background:"url(image/showbox.png) no-repeat", //背景圖片
cursor:"pointer"
});
marker.setLabel(label);