-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(google-maps): add event emitter for gm_authFailure callback #22953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(google-maps): add event emitter for gm_authFailure callback #22953
Conversation
309a6c3 to
390641c
Compare
mbehrlich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| 'https://developers.google.com/maps/documentation/javascript/' + | ||
| 'tutorial#Loading_the_Maps_API'); | ||
| } | ||
| googleMapsWindow.gm_authFailure = () => this.authFailure.emit(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this will break if there are multiple maps on the page since each one will overwrite the auth failure callback on the previous map. We should do something like in the youtube-player: https://github.com/angular/components/blob/master/src/youtube-player/youtube-player.ts#L224
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
edc39a0 to
3afbba1
Compare
3afbba1 to
c7213c4
Compare
crisbeto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Emit event from the
GoogleMapcomponent when thegm_authFailurecallback is called.Fixes #22163