diff --git a/packages/core/directives/marker.ts b/packages/core/directives/marker.ts index 741d6ee5e..5762827c0 100644 --- a/packages/core/directives/marker.ts +++ b/packages/core/directives/marker.ts @@ -113,7 +113,7 @@ export class AgmMarker implements OnDestroy, OnChanges, AfterContentInit { /** * This event emitter gets emitted when the user clicks on the marker. */ - @Output() markerClick: EventEmitter = new EventEmitter(); + @Output() markerClick: EventEmitter = new EventEmitter(); /** * This event is fired when the user rightclicks on the marker. @@ -215,7 +215,7 @@ export class AgmMarker implements OnDestroy, OnChanges, AfterContentInit { if (this.openInfoWindow) { this.infoWindow.forEach(infoWindow => infoWindow.open()); } - this.markerClick.emit(null); + this.markerClick.emit(this); }); this._observableSubscriptions.push(cs);