title: How to get marker object from angular google maps without clicking it
body: <p>I basically need to hide the markers on click of a button .I am using angular google maps and I want to retrieve the marker object of the markers present on the map. How can i get that.  In the below code, I am passing the markers json response and creating markers on map. Any help on this is much appreciated. Thanks!!</p>
  
  <pre><code>&lt;agm-map 
    #AgmMap
    (mapReady)="initMap($event)"&gt;
  
    &lt;agm-marker 
        *ngFor="let m of markers; let i = index"
        [latitude]="m.lat"
        [longitude]="m.lng"
        [label]="m.label"
        [markerDraggable]="m.draggable"
        (dragEnd)="markerDragEnd(m, $event)"&gt;
  
  
  
    &lt;/agm-marker&gt;
  &lt;/agm-map&gt;
  </code></pre>