title: Is there a way to update/refresh the agm-map component?
body: <p>I'm trying to update the map component in my application, I expect to refresh the location and pan the map onto the latitude and longitude that are typed in the form .</p>
  <p>I have this at the moment:</p>
  <p><strong>HTML Component:</strong></p>
  <pre class="lang-html prettyprint-override"><code>    &lt;div class=&quot;row&quot;&gt;
            &lt;button (click)=&quot;refreshMap()&quot; class=&quot;btn btn-block&quot;&gt;Refrescar localizacion&lt;/button&gt;
          &lt;/div&gt;
  
      &lt;agm-map
              [latitude]=&quot;myform.get('Latitude').value&quot;
              [longitude]=&quot;myform.get('Longitude').value&quot;
              [disableDefaultUI]=&quot;true&quot;
              [zoom]=&quot;13&quot;
              (mapClick)=&quot;mapClicked($event)&quot;
              [usePanning]=&quot;true&quot;
            &gt;
              &lt;agm-marker [latitude]=&quot;myform.get('Latitude').value&quot; [longitude]=&quot;myform.get('Longitude').value&quot;&gt; &lt;/agm-marker&gt;
            &lt;/agm-map&gt;
  </code></pre>
  <p><strong>Typescript:</strong></p>
  <pre class="lang-typescript prettyprint-override"><code> refreshMap() {
      const position = {
        coords: { lat: this.myform.controls.('latitude').value, lng: this.myform.controls.('longitude').value },
      };
      this.marker.position = position.coords;
      const currentLat = this.marker.position.lat;
      const currentLng = this.marker.position.lng;
  
      this.latitude.setValue(currentLat);
      this.longitude.setValue(currentLng);
   }
  </code></pre>
  <p>This way when I click the button, it pans the agm-map to the location represented by the the values that are currently on the Inputs and adds a marker in that location. I would like to do this without using a button and reactively while Typing the coordinates, like after a certain time it updates the map, but doing it through the button it works for me(I have both Inputs and the agm-map in the same screen). Is there any way I can make this possible?</p>