Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/google-maps/google-map/google-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
}
private _options = DEFAULT_OPTIONS;

/** Event emitted when the map is ready. */
@Output() readonly mapReady: EventEmitter<google.maps.Map> = new EventEmitter<google.maps.Map>();

/**
* See
* https://developers.google.com/maps/documentation/javascript/events#auth-errors
Expand Down Expand Up @@ -305,6 +308,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
this.googleMap = new google.maps.Map(this._mapEl, this._combineOptions());
});
this._eventManager.setTarget(this.googleMap);
this.mapReady.emit(this.googleMap);
}
}

Expand Down
1 change: 1 addition & 0 deletions tools/public_api_guard/google-maps/google-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const DEFAULT_WIDTH = "500px";
// @public
export class GoogleMap implements OnChanges, OnInit, OnDestroy {
constructor(_elementRef: ElementRef, _ngZone: NgZone, platformId: Object);
readonly mapReady: EventEmitter<google.maps.Map>;
readonly authFailure: EventEmitter<void>;
readonly boundsChanged: Observable<void>;
// (undocumented)
Expand Down