如何从Google Maps V3中删除圈子?

时间:2011-11-24 16:26:03

标签: google-maps google-maps-api-3 polyline

我使用

绘制了圆圈
    circle = new google.maps.Circle({
    map: map,
    radius: r,    // 1 miles in metres = 1609.3 m
        strokeWeight:1,
        strokeOpacity:0.5,
        fillOpacity:0.2,
        fillColor: '#AA0000'
    });
    circle.bindTo('center', marker, 'position');

如何从地图中删除圆圈?

1 个答案:

答案 0 :(得分:10)

circle.setMap(null);

将移除圆圈