title: Hyperlink to open marker infowindow on Google Map
body: <p>I have a map, with a side bar div next to it. I'm trying to make it so that each marker on the map has a corresponding hyperlink in the sidebar, and when clicked, the info box for that marker pops up.</p>
  
  <pre><code>function linkClick(){
     google.maps.event.trigger(gmarkers[cpid], "click");
  }
  
  content += '&lt;a href="javascript:linkClick(' + cpid + ')"&gt;'+tmpName+"&lt;/a&gt;&lt;br&gt;";
  $("#cplist").html(content);
  </code></pre>
  
  <p>cpid is a unique id for every point on the map, a value which is stored in the database with the rest of the information for the markers. </p>
  
  <p>I have my markers on the map, and my links in the side bar, but I'm not sure how to make the connection between to two. I've created the 'linkClick' function to try and achieve this, but I just get the error:</p>
  
  <pre><code>ReferenceError: Can't find variable: linkClick
  </code></pre>
  
  <p>Currently all of the above code is in the loop which plots the markers on the map. I think i've included enough detail/code.</p>
  
  <p>This is an example of what I want to achieve <a href="http://www.geocodezip.com/v3_MW_example_categories.html" rel="nofollow">http://www.geocodezip.com/v3_MW_example_categories.html</a></p>