Bader
Bader

Reputation: 3774

How to remove circle from Google Maps V3?

I have drawn circle using

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

How to remove circle from the map ?

Upvotes: 3

Views: 8402

Answers (1)

Bader
Bader

Reputation: 3774

circle.setMap(null);

will remove the circle

Upvotes: 10

Related Questions