title: Map not updating till a forced refresh or mouse click
body: <p>I'm using a map to track stops during my RV  travels. Thus the map is rendering polyLines and markers. Here is html.</p>
  
  <pre><code>&lt;div style="min-height: 400px;"&gt;
  &lt;agm-map *ngIf="showMap" [latitude]="lat" [longitude]="lng" [fitBounds]="bounds" 
  [zoom]="zoom"&gt;
    &lt;agm-polyline [strokeColor]="'#2196f3'"&gt;
      &lt;ng-container *ngFor="let i of points"&gt;
        &lt;agm-polyline-point [latitude]="i.lat()" [longitude]="i.lng()"&gt;&lt;/agm-polyline-point&gt;
      &lt;/ng-container&gt;
    &lt;/agm-polyline&gt;
    &lt;agm-marker *ngFor="let mark of markers"
        [latitude]="mark.latitude"
        [longitude]="mark.longitude"
        [title]="mark.title"
        [label]="mark.label"
        [iconUrl]="mark.iconUrl"&gt;
    &lt;/agm-marker&gt;
  &lt;/agm-map &gt;
  </code></pre>
  
  <p></p>
  
  <p>Nothing fancy in the component about the data.</p>
  
  <pre><code>markers: any[] = [];
  points: any[] = [];
  bounds: any;
  showMap: boolean = true;
  stopDistance: number = 300;
  </code></pre>
  
  <p>I have a setCenter function that I call after all of the data is updated. and I've added a couple markers to it to see that the bounds have been updated correctly. I didn't add that code for brevity. </p>
  
  <pre><code> setCenter() {
      this.bounds = new google.maps.LatLngBounds();
      this.points.forEach(m =&gt; this.bounds.extend(m));
       this.lat = this.bounds.getCenter().lat();
      this.lng = this.bounds.getCenter().lng();
      this.zoom = 1;
  </code></pre>
  
  <p>Expected result: After adding the markers and p-lines and then setting the bounds I expect the map to update and center.</p>
  
  <p>Result: The map doesn't update or move until I move the mouse over the map and sometimes click on it. This causes an immediate update so I'm assuming it isn't stuck in a slow function. I've also looked at the performance tab in the debugger to see if it was stuck somewhere.</p>
  
  <p>Things tried: Using and ngIf to hide and then show the map, the latest version has manual setting of the lat and lng and zoom. Tried different browsers.</p>