got clicks logging

This commit is contained in:
piratefinn 2017-11-14 18:31:05 +00:00
parent bad44f7d06
commit 5d48bd1539
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@
[latitude]="m.latitude"
[longitude]="m.longitude"
[openInfoWindow]="false"
(markerClick)="onMarkerClick($event)">
(markerClick)="onMarkerClick(m)">
</agm-marker>
</agm-marker-cluster>
</agm-map>

View file

@ -30,8 +30,8 @@ export class TrailMapComponent2 implements OnInit {
this.map = map;
}
public onMarkerClick() {
public onMarkerClick(clickedMarker) {
console.log(clickedMarker);
}
public viewBoundsChanged() {