title: How do create clickable icons in google maps api v3?
body: <p>I looked in the api docs but couldn't find much. I am stuck trying to create a clickable icon using the code below that displays a pop up box of information:</p>
  
  <pre><code>  function initialize() {
    var myLatLng = new google.maps.LatLng(52.288, 0.78);
    var myOptions = {
      zoom: 8,
      center: myLatLng,
      mapTypeId: google.maps.MapTypeId.HYBRID
    };
  
    var map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);
  
  &lt;?php
  
      $sql_launch = mysql_query("SELECT * FROM pred_route WHERE time = (SELECT MIN(time) FROM pred_route)");
      $sql_land = mysql_query("SELECT * FROM pred_route WHERE time = (SELECT MAX(time) FROM pred_route)");
      $sql_pop = mysql_query("SELECT * FROM pred_route WHERE alt = (SELECT MAX(alt) FROM pred_route)");
  
   ?&gt;
  
    var contentString = '&lt;div id="content"&gt;'+
      '&lt;div id="siteNotice"&gt;'+
      '&lt;/div&gt;'+
      '&lt;h1 id="firstHeading" class="firstHeading"&gt;Uluru&lt;/h1&gt;'+
      '&lt;div id="bodyContent"&gt;'+
      '&lt;p&gt;&lt;b&gt;Uluru&lt;/b&gt;, also referred to as &lt;b&gt;Ayers Rock&lt;/b&gt;, is a large ' +
      'sandstone rock formation in the southern part of the '+
      'Northern Territory, central Australia. It lies 335 km (208 mi) '+
      'south west of the nearest large town, Alice Springs; 450 km '+
      '(280 mi) by road. Kata Tjuta and Uluru are the two major '+
      'features of the Uluru - Kata Tjuta National Park. Uluru is '+
      'sacred to the Pitjantjatjara and Yankunytjatjara, the '+
      'Aboriginal people of the area. It has many springs, waterholes, '+
      'rock caves and ancient paintings. Uluru is listed as a World '+
      'Heritage Site.&lt;/p&gt;'+
      '&lt;p&gt;Attribution: Uluru, &lt;a href="http://en.wikipedia.org/w/index.php?title=Uluru&amp;oldid=297882194"&gt;'+
      'http://en.wikipedia.org/w/index.php?title=Uluru&lt;/a&gt; (last visited June 22, 2009).&lt;/p&gt;'+
      '&lt;/div&gt;'+
      '&lt;/div&gt;';
  
    var infowindow = new google.maps.InfoWindow({
      content: contentString
      });
  
    var image_balloon = new google.maps.MarkerImage("http://projectstratos.com/images/map/balloon.png",new google.maps.Size(32,37));
    var balloon_longlat = new google.maps.LatLng(&lt;?php echo $current['lat'] . ", " . $current['long']; ?&gt;);
    var balloon = new google.maps.Marker({
        position: balloon_longlat,
        map: map,
        icon: image_balloon
    });
  
    google.maps.event.addListener(marker, 'click', function() {
    infowindow.open(map,image_balloon);
    });
  </code></pre>