views:

27

answers:

1

Hey guys.

Is there a way of quickly show/hide of google maps markers?

I don't want to remove/re-add every time, because I basically need to display them only on mouseover and hide on mouseout.

I tried with

marker.hide()

But I kinda get an ugly error because it seems that hide is available on gmaps2 but not on gmaps3 api.

Thanks!

+2  A: 

Does

marker.setVisible(false)

do what you need?

marapet
YES! Thanks man!
Ionut Staicu