Home:ALL Converter>How to add my location button in Google Maps using Angular google maps?

How to add my location button in Google Maps using Angular google maps?

Ask Time:2018-10-26T17:26:45         Author:Nancy

Json Formatter

enter image description here

I am using angular google maps to display maps and markers. Is it possible to show the icon in the bottom right corner of the map that on click of it shows the current location.

<agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom">
  <agm-marker *ngFor="let m of mapArrayList; let i = index" 
    [latitude]="m.geometry.location.lat()" [longitude]="m.geometry.location.lng()" 
    >

  </agm-marker>
</agm-map>

Author:Nancy,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53005583/how-to-add-my-location-button-in-google-maps-using-angular-google-maps
yy