title: How to get Latitude and longitude from a click on the map?
body: <p>Hi everyone im trying to add the possibility that the user can get the latitude and longitude from a  click  and get the lat and longitude in the fields : this is my html part : </p>
  
  <pre><code>    &lt;div class="col-sm-4"&gt;
        &lt;div class=" panel panel-primary" style="background-color: darkgray;" &gt;
          &lt;div class="panel-heading"&gt;Position :&lt;/div&gt;
          &lt;div class="panel-body"&gt;
  
            &lt;div class="form-group"&gt;
              &lt;label class="control-label"&gt;Adresse :&lt;/label&gt;
              &lt;input type="text" class="form-control" [(ngModel)]="pan.adresse"/&gt;
            &lt;/div&gt;
  
            &lt;div class="form-group"&gt;
              &lt;label class="control-label"&gt;Latitude&lt;/label&gt;
              &lt;input type="text" class="form-control" [(ngModel)]="pan.latitude"/&gt;
            &lt;/div&gt;
  
            &lt;div class="form-group"&gt;
              &lt;label class="control-label"&gt;Longitude :&lt;/label&gt;
              &lt;input type="text" class="form-control" [(ngModel)]="pan.longitude"/&gt;
            &lt;/div&gt;
  
            &lt;div class="form-group"&gt;
              &lt;label class="control-label"&gt;Etat :&lt;/label&gt;
              &lt;input type="text" class="form-control" [(ngModel)]="pan.etat"/&gt;
            &lt;/div&gt;
  
          &lt;/div&gt;&lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="col-sm-8"&gt;
        &lt;div class=" panel panel-primary"  &gt;
          &lt;div class="panel-heading"&gt;Map :&lt;/div&gt;
          &lt;div class="panel-body"&gt;
  
            &lt;agm-map [latitude]="36.718241" [longitude]="3.091969" [zoom]="6"&gt;
            &lt;/agm-map&gt;
  
          &lt;/div&gt;&lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>so i have the map and the input related to latitude and longitude, instead of writing the informations i want to replace that by a  click on the map and the fields will be full automatically 
  thanks guys.</p>