jawj / OverlappingMarkerSpiderfier

Deals with overlapping markers in Google Maps JS API v3, Google Earth-style
http://blog.mackerron.com
838 stars 238 forks source link

how to trigger click on page load #92

Open GytisR opened 9 years ago

GytisR commented 9 years ago

Hello, i need to open specific infowindow on page load, but i can't find a way to do that

OmerSchechter commented 9 years ago

Hi @meshkas, I assume you have an infowindow variable, something like this:

var infoWindow = new google.maps.InfoWindow(); 

All you need to do is call it's 'open' method and pass in the map:

infoWindow.open(map);

This should be called inside your 'onload' function.

If you'll share some code I'd be happy to help you out.