title: Google Maps Pan between markers
body: <p>I have multiple markers on a map that I want the ability to pan between. The idea being that if you click Marker 1 it will pan to Marker 1 being centered, and then if you click Marker 2 it will pan from Marker 1 to Marker 2. I've got the pan to work fine initially, but it won't pan from one marker to another without the user moving the map first.</p>
  
  <p>The current code I'm using is:</p>
  
  <pre><code>google.maps.event.addListener(marker, 'click', function() {
      map.panTo(marker.getPosition());
  });
  </code></pre>
  
  <p>I'm thinking there might be something I'm unaware of when it comes to using multiple marker event listeners in a row (maybe? I'm not sure).</p>
  
  <p>Here's the functioning example as I'm encountering it now:<br>
  <a href="http://kolosk.us/pan/" rel="nofollow">http://kolosk.us/pan/</a></p>
  
  <p>Hopefully that's clear, let me know if you can help. Thanks!</p>