got clicks logging
This commit is contained in:
parent
bad44f7d06
commit
5d48bd1539
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -30,8 +30,8 @@ export class TrailMapComponent2 implements OnInit {
|
|||
this.map = map;
|
||||
}
|
||||
|
||||
public onMarkerClick() {
|
||||
|
||||
public onMarkerClick(clickedMarker) {
|
||||
console.log(clickedMarker);
|
||||
}
|
||||
|
||||
public viewBoundsChanged() {
|
||||
|
|
Reference in a new issue