I am creating a Circle using the google.maps.Circle() method. This all works fine and dandy, but how can I remove said circle?
My code:
var populationOptionsAgain = {
strokeColor: "#c4c4c4",
strokeOpacity: 0.35,
strokeWeight: 0,
fillColor: "#ffffff",
fillOpacity: 0.35,
map: map,
center: results[0].geometry.location,
radius: 40000
};
cityCircle = new google.maps.Circle(populationOptionsAgain);
You need to call the setMap method on the Circle object to null: