What is the difference between "marker.setVisible(false)" and "marker.setMap(null)" in Google Maps v3?

Viewed 30050

I want to clear a marker on Google Maps.

What is the difference between marker.setVisible(false) and marker.setMap(null)?

But I don't know, which is right?

2 Answers
Related