3

我用画圈了

    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');

如何从地图中删除圆圈?

4

1 回答 1

10
circle.setMap(null);

将删除圆圈

于 2011-11-24T16:51:41.357 回答