Skip to content
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

[BUG] - Popover not sticking to div element on Google Maps (might not be bug) #88

Open
asdutoit opened this issue Jun 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@asdutoit
Copy link

Describe the bug
Hi Guys,
I am using Nextjs 12 with Google Maps. I am wondering if I can use the React-laag Popover element with a map marker.

I have managed to create the marker and on invoking an onClick function, the popover appears. But when panning the map, the popover element does not stay with the marker.
It is very possible that this is not a bug but merely the incorrect application of this utility.

Working Example is available at Codesandbox: Click Here

Expected behaviour
The Popover element should stick to the div element (for example the marker or button) when panning the maps.

Screenshots
Screenshot 2022-06-30 at 12 36 59
Screenshot 2022-06-30 at 12 37 05 (2)

  • Nextjs 12.2.0
  • React 18.3.0

Additional context
I have noticed weird behaviour with Markers and OverlayViews on React version 18. Not sure if it could be related.
To experience this behaviour, click on the map marker with-OverlayView and pan the map.

@asdutoit asdutoit added the bug Something isn't working label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant