var map = new BMap.Map("allmap");
var point = new BMap.Point(111.331398,29.897445);
map.centerAndZoom(point,12);
// 创建地址解析器实例
var myGeo = new BMap.Geocoder();
// 将地址解析结果显示在地图上,并调整地图视野
myGeo.getPoint("上海市徐汇区吴兴路", function(point){
if (point) {
map.centerAndZoom(point, 16);
var marker = new BMap.Marker(point);
var label = new BMap.Label("老!",{"offset":new BMap.Size(10,-20)});
marker.setLabel(label);
map.addOverlay(marker);
}
}, "上海");