-
Notifications
You must be signed in to change notification settings - Fork 146
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
Custom marker onclick does not work #196
Comments
Same here |
Same issue here. To get around it, I used the Overlay component, instead of the Marker, and setted the onClick function to my custom icon, which is a image, like so:
I had to offset the image a bit, but when zooming in or out, it had a better behavior then the actual Marker. |
any solution ? |
I faced a similar issue and resolved it by adding a custom style to the marker. This ensures that click events are handled correctly. Here’s the CSS for the marker: `.marker { & > svg { And here’s the component with the Marker: <Icon as={'marker'} height={44} width={44} /> This adjustment allows the marker to properly capture click events. If you're encountering a similar issue, this approach might help. |
I cant get onClick to work on a Marker with children.
Neither marker or marker children gets logged. If I remove the children then onClick works on the marker. What am I doing wrong?
The text was updated successfully, but these errors were encountered: