Skip to content

feat(google-maps): Add support for the gmp-click event#33147

Merged
andrewseguin merged 1 commit intoangular:mainfrom
jermowery:fix-advanced-marker
Apr 24, 2026
Merged

feat(google-maps): Add support for the gmp-click event#33147
andrewseguin merged 1 commit intoangular:mainfrom
jermowery:fix-advanced-marker

Conversation

@jermowery
Copy link
Copy Markdown
Contributor

Add an output to proxy the gmp-click event and an input for gmpClickable which is set on the AdvancedMarkerElement. Everything is the same pattern as gmpDrag

Fixes #33145

@pullapprove pullapprove Bot requested review from adolgachev and crisbeto April 24, 2026 17:41
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: google-maps labels Apr 24, 2026
Add an output to proxy the gmp-click event and an input for gmpClickable which is set on the AdvancedMarkerElement. Everything is the same pattern as gmpDrag

Fixes #33145
@jermowery jermowery force-pushed the fix-advanced-marker branch from 129fb4a to fa1d475 Compare April 24, 2026 17:51
* @see https://developers.google.com/maps/documentation/javascript/reference/advanced-markers#AdvancedMarkerElementOptions.gmpClickable
*/
@Input()
set gmpClickable(clickable: boolean) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we set this automatically if gmpClick is bound?

Copy link
Copy Markdown
Contributor Author

@jermowery jermowery Apr 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't for any of the drag events ¯\_(ツ)_/¯

I think the API could use a bit of an overhaul, especially since the underlying Google Maps API has changed since this was written. Probably would be best to do that as a separate thing

@jermowery
Copy link
Copy Markdown
Contributor Author

@andrewseguin andrewseguin added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Apr 24, 2026
@andrewseguin andrewseguin merged commit e44ff83 into angular:main Apr 24, 2026
31 checks passed
@andrewseguin
Copy link
Copy Markdown
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: google-maps detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(google-maps): MapsAdvancedMarker should support gmp-click and gmp-clickable

3 participants