title: gMaps.js pan to center map over marker that is clicked
body: <p>I have been looking around a lot and I use the gMaps.js 
  The link is: <a href="http://hpneo.github.io/gmaps/" rel="nofollow">http://hpneo.github.io/gmaps/</a></p>
  
  <p>I have a for loop that iterates through all my coords (longitude and latitude) and placed markers all other the city. The problem is I would like when I click a marker that the map centers around it.</p>
  
  <p>I have tried: </p>
  
  <pre><code>     .click(function() {
              map.panTo(23,43);
        }
  </code></pre>
  
  <p>Also:</p>
  
  <pre><code>     google.maps.event.addListener(marker, 'click', function() {
       infowindow.open(map,marker);
  </code></pre>
  
  <p>My Gmap area is as follows: </p>
  
  <pre><code>    $(document).ready(function(){
          $("#tell").hide();
          map = new GMaps({
          div: '#googleMap',
          lat: listRecCenters[4].latitude,  //property map (city) in list at array index 4 no quotes
          lng: listRecCenters[4].longitude,
          zoom: 10,
      }); 
  
      for(i = 0; i &lt; listRecCenters.length; i++)
      {
          map.addMarker({
          lat: listRecCenters[i].latitude,
          lng: listRecCenters[i].longitude,
          title: listRecCenters[i].city,
          infoWindow: {content: "&lt;p class = \"info\"&gt;&lt;img src = \"img/rec.jpg\" style = \"float:right;margin:-10px; padding-right:4px;padding-top:4px;width:40px; height:40px;\"&gt;&lt;/span&gt;" + listRecCenters[i].name + "&lt;br&gt;&lt;span class = \"addcolor\"&gt;" + listRecCenters[i].addr
          + "&lt;br/&gt;" + listRecCenters[i].city + listRecCenters[i].phone + "&lt;/span&gt;" + "&lt;span class = \"myUrl\"&gt;&lt;a href = \"http://maps.google.com/?q=" + listRecCenters[i].addr + " "+listRecCenters[i].city + ",Ontario, Canada\"&gt;Google Link&lt;/a&gt;&lt;a &lt;a href = \"http://maps.google.com/maps/geo?output=xml&amp;q" + listRecCenters[i].addr + " "+listRecCenters[i].city + ",Ontario, Canada\"&gt;Lat/Long&lt;/a&gt;&lt;a&lt;/span&gt;&lt;/p&gt;"
       }              
    });
  });
  </code></pre>
  
  <p>Any help would be greatly appreciated, nothing seems to work for being able to do this. Thanks a lot for reading my post. If you require any more answers I'll gladly post them.</p>