body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;}
#l-map{height:100%;width:78%;float:left;border-right:2px solid #bcbcbc;}
#r-result{height:100%;width:20%;float:left;}
圆形区域搜索
var map = new BMap.Map("allmap"); // 创建Map实例
var mPoint = new BMap.Point(102.752495, 25.047873);
map.enableScrollWheelZoom();
map.centerAndZoom(mPoint, 14);
setMapEvent();
addMarker(mPoint, 0);
var circle = new BMap.Circle(mPoint, 5000, { //半径为5公里圆
fillColor: "blue",
strokeWeight: 1,
fillOpacity: 0.1,
strokeOpacity: 0.1
});
var circle1 = new BMap.Circle(mPoint, 7500, { //半径为7.5公里圆
fillColor: "red", //颜色
strokeWeight: 2, //边框宽带
fillOpacity: 0.1,
strokeOpacity: 0.1
});
map.addOverlay(circle);
map.addOverlay(circle1);