title: How can I make google maps follow the new marker position?
body: <p>I have Longitude and Latitude variables being updated with new positions constantly and setting a new position for the marker on the map with them. When the marker starts to move off screen, I want the map to be able to follow it at all times. How can I do this? Here is my code:</p>
  
  <pre><code> &lt;script&gt;
   function initialize() {
   var Longitude = //coordinates from server
   var Latitude = //coordinates from server
   var latlng = new google.maps.LatLng(Latitude,Longitude);
   marker.setPosition(latlng);
  
   });
   }
  
   google.maps.event.addDomListener(window, 'load', initialize);
   &lt;/script&gt;
  </code></pre>