我用
画了一个圆 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');
如何从 map 中删除圆圈?
最佳答案
circle.setMap(null);
将删除圆圈
关于google-maps - 如何从 Google Maps V3 中删除圆圈?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8260029/