got clicks logging

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

View file

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

View file

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