From a411a0e7fb0bf6e806fa0000d49ba33d09739754 Mon Sep 17 00:00:00 2001 From: piratefinn Date: Tue, 14 Nov 2017 18:31:05 +0000 Subject: [PATCH] got clicks logging --- src/app/dashboard/trail-map-2.component.html | 2 +- src/app/dashboard/trail-map-2.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/dashboard/trail-map-2.component.html b/src/app/dashboard/trail-map-2.component.html index f5beebf..d927f7f 100644 --- a/src/app/dashboard/trail-map-2.component.html +++ b/src/app/dashboard/trail-map-2.component.html @@ -29,7 +29,7 @@ [latitude]="m.latitude" [longitude]="m.longitude" [openInfoWindow]="false" - (markerClick)="onMarkerClick($event)"> + (markerClick)="onMarkerClick(m)"> diff --git a/src/app/dashboard/trail-map-2.component.ts b/src/app/dashboard/trail-map-2.component.ts index 5a5c1aa..7d26fda 100644 --- a/src/app/dashboard/trail-map-2.component.ts +++ b/src/app/dashboard/trail-map-2.component.ts @@ -30,8 +30,8 @@ export class TrailMapComponent2 implements OnInit { this.map = map; } - public onMarkerClick() { - + public onMarkerClick(clickedMarker) { + console.log(clickedMarker); } public viewBoundsChanged() {