<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak="></script> //引入百度地图 ak=你的ak
<script src="js/jquery.min.js"></script> //引入 JQ
<script type="text/javascript">
var map = new BMap.Map("allmap");
var point = new BMap.Point(116.709684,39.89778);
map.centerAndZoom(point, 16);
map.enableScrollWheelZoom();
var myIcon = new BMap.Icon("myicon.png",new BMap.Size(30,30),{
anchor: new BMap.Size(10,10)
});
var marker=new BMap.Marker(point,{icon: myIcon});
map.addOverlay(marker);
var geolocation = new BMap.Geolocation();
geolocation.getCurrentPosition(function(r){
if(this.getStatus() == BMAP_STATUS_SUCCESS){
var