title: Google Maps API v3 resize event
body: <p>Using Maps API v3. As per Google documentation, if the map container is resized programmatically, the map resize event must be triggered manually. </p>
  
  <p>Resize event: Developers should trigger this event on the map when the div changes size.</p>
  
  <p>Therefore I am using:</p>
  
  <pre><code>google.maps.event.trigger(map, 'resize');
  </code></pre>
  
  <p>Which listener should I be using to update my markers based on the new bounds of the resized map container?</p>
  
  <pre><code>google.maps.event.addListener(map, 'resize', function() {
  
      console.log(map.getBounds());
  });
  </code></pre>
  
  <p>The above still shows the bounds before resizing.</p>