百度地图画圆、个性化

画圈:

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"
}
}]
});

 

posted @ 2017-05-12 11:39  土豆何必为难土豆  阅读(821)  评论(0编辑  收藏  举报