console
<div id="allmap"></div>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=P6QfOGrhFllpZodPYeF7RW1nN1B9rp62"></script>
<script>
var map = new BMap.Map("allmap");
var point = new BMap.Point(116.317383, 39.939885);
map.centerAndZoom(point, 15);
var pt = new BMap.Point(116.317383, 39.939885);
var myIcon = new BMap.Icon("images/s-maps.png", new BMap.Size(51, 64));
var marker2 = new BMap.Marker(pt, {
icon: myIcon
});
map.addOverlay(marker2);
</script>
#allmap { height:400px;}