-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: google-maps
Description
Is this a regression?
- Yes, this behavior used to work in the previous versionTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
The previous version in which this bug was not present was
No response
Description
I'm getting the following warning in console when I use @angular/google-maps@19.2.2
:
<gmp-advanced-marker>: Please use addEventListener('gmp-click', ...) instead of addEventListener('click', ...).
Would this mean the following code should be changed to gmp-click
as suggested in the warning?
this._eventManager.getLazyEmitter<google.maps.MapMouseEvent>('click'); |
Reproduction
Create a project that uses the (mapClick)
-Output on a <map-advanced-marker>
Expected Behavior
No warning in console.
Actual Behavior
Warning in console.
Environment
- Angular: 19.2.1
- CDK/Material: 19.2.2
- Google-Maps: 19.2.2
- Browser(s): Chrome
- Operating System: Windows
king-martinien, rhutchison, JosefBlattler, kungufli, btous and 5 more
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: google-maps
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
crisbeto commentedon Mar 7, 2025
Hmm interesting, something along these lines came up for #30420 and we couldn't use
addEventListener
, because it was only available in thebeta
channel of the Maps API.crisbeto commentedon Mar 7, 2025
Playing with it a bit more, even when using
addEventListener('gmp-click')
it behaves weirdly. The handler doesn't get fired and it still logs some warning from the clusterer.king-martinien commentedon Mar 8, 2025
Hello,
I’m experiencing the same issue with
<gmp-advanced-marker>
in@angular/google-maps@19.2.2
.My setup:
martinarcejoviva commentedon Mar 27, 2025
I'm experiencing the same issue on a Nuxt app using google maps. Even though I don't use
.addListener("click",
I still get those warnings.
emilyDZC commentedon Apr 7, 2025
I'm getting the same issue in Vue3 using
vue3-google-map@0.21.1
. I'm also not using.addListener("click", ...)
.boycany commentedon Apr 21, 2025
same
onorok commentedon May 12, 2025
Add me to the list!