got clicks logging
This commit is contained in:
parent
4c5074c5fc
commit
a411a0e7fb
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