How can i toggle google maps markers? -


Is there a way to show / hide Google Maps markers immediately?

I do not want to delete / re-add every time, because I basically need to display only on mouseover and hide it on mouseover.

I tried

  marker.hide ()  

But I get some ugly error because it seems Is that hide is available at gmaps2 but gmaps3 is not on API

What

  Marker.setVisible (false)  

What should you do?


Comments