百度地图画圆、个性化
画圈:
circle = new BMap.Circle(new BMap.Point(lg, lt), 2000, { fillColor: "blue", strokeWeight: 1, fillOpacity: 0.2, strokeOpacity: 0.2 });//半径2公里瞄点
map.addOverlay(circle)
利用map.setMapStyle方法个性化,如:
map.setMapStyle({
styleJson: [{
"featureType": "poi",
"elementType": "all",
"stylers": {
"color": "#ffffff",
"visibility": "off"
}
}]
});