Trying to plot the markers using latitude and longitude in agm-map. Using agm-marker-cluster to cluster the markers. If there are 10 markers with same lat and long how will i get the cluster click along with the details of those 10 markers clustered together?
<agm-marker-cluster *ngFor="let item of ClusterArray; let i = index" [styles]="item[1]">
<agm-marker *ngFor="let items of item[0]" [latitude]="items.latitude" [longitude]="items.longitude"[iconUrl]="item[2]" (markerClick)="markerClick(items)">
</agm-marker>
</agm-marker-cluster>
see this worked for me:
marker-cluster.directive.ts