title: Opening Google Maps V2 InfoWindow automatically when map and marker loads
body: <p>How do you call a markers' infowindow to open when the map loads.  For some reason the Google documentation only shows how to respond to a click action. I'm not very good with JavaScript so any help would be appreciated. Thanks!</p>
  
  <p>this is my current code, but for some reason, no map appears.  But there is no error to help me pinpoint the problem...</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no" /&gt;
  &lt;style type="text/css"&gt;
    html { height: 100% }
    body { height: 100%; margin: 0; padding: 0 }
    #map_canvas { height: 100% }
  &lt;/style&gt;
  &lt;script type="text/javascript"
      src="http://maps.googleapis.com/maps/api/js?sensor=true"&gt;
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  
      function initialize() {
  
  var map = new GMap2(document.getElementById("map"));
  var point = new GLatLng(53.3407791, -6.2596385);
  
  map.addControl(new GLargeMapControl());
  map.addControl(new GMapTypeControl());
  map.setCenter(point, 16);
  
  // Set up three markers with info windows 
  var html = 'South Anne Street,&lt;br /&gt;Dublin 2, Ireland';
  var marker = new GMarker(point);
  
  map.addOverlay(marker);
  marker.openInfoWindowHtml(html);     // This opens the info window automatically
  
  GEvent.addListener(marker, "click", function() {
     marker.openInfoWindowHtml(html);
  });
  
  }
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body onload="initialize()"&gt;
    &lt;div id="map_canvas" style="width:100%; height:100%"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>