问题
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 ?
回答1:
circle.setMap(null);
will remove the circle
来源:https://stackoverflow.com/questions/8260029/how-to-remove-circle-from-google-maps-v3