react-google-maps icon indicating copy to clipboard operation
react-google-maps copied to clipboard

Add mouse enter and mouse leave events on Advance Marker's Pin

Open aliasad106 opened this issue 1 year ago • 6 comments
trafficstars

This allows to listen mouse over and mouse leave events on the pin of advance marker.

aliasad106 avatar Apr 08 '24 12:04 aliasad106

Thanks for the PR!

Can you explain why the listeners should be added to the Pin instead of the AdvancedMarker component? The way I see it, the Pin is just one of many ways to use the AdvancedMarker and I think we should add support for the DOM events there instead.

usefulthink avatar Apr 08 '24 14:04 usefulthink

@usefulthink because for some reasons adding directly to AdvancedMarker doesn't work.

aliasad106 avatar Apr 09 '24 03:04 aliasad106

Ok yeah, that makes sense. I think there was something with the pointer-events css-property that has to be adjusted to use dom-events with the markers. I'll have a look into that.

usefulthink avatar Apr 09 '24 11:04 usefulthink

Ok yeah, that makes sense. I think there was something with the pointer-events css-property that has to be adjusted to use dom-events with the markers. I'll have a look into that.

Any update regarding this? what has to be adjusted to make it work?

isaacpresidium avatar Jun 25 '24 19:06 isaacpresidium

@isaacpresidium I have created a PR but they never merged it so I am using my own forked one. You can use if you want.

aliasad106 avatar Jun 27 '24 09:06 aliasad106

Can this be merged?

jogoley avatar Jul 17 '24 16:07 jogoley

Thanks to @mrMetalWood, we finally have a good solution that works reliably for all types of advanced marker: #472

Closing this as outdated.

usefulthink avatar Sep 05 '24 18:09 usefulthink