Skip to content Skip to sidebar Skip to footer

Open Infowindows By Default

I have a problem with Google Maps info windows. I have 2 markers and I want to open both info windows by default. But I can't figure out how to do it. Here is my code:

Solution 1:

Trigger the click-event for the markers.

Put this at the end of the for-loop:

google.maps.event.trigger(marker,'click',{});

working fiddle

Post a Comment for "Open Infowindows By Default"